python没有名为service_identity的模块

python No module named service_identity

本问题已经有最佳答案,请猛点这里访问。

我试图更新Scrapy,当我试图检查版本时,我得到了以下错误

1
2
3
4
5
6
7
8
9
10
11
12
13
C:\Windows\system32>scrapy version -v
:0: UserWarning: You do not have a working installation of the service_identity
module: 'No module named service_identity'.  Please install it from <https://pyp
i.python.org/pypi/service_identity> and make sure all of its dependencies are sa
tisfied.  Without the service_identity module and a recent enough pyOpenSSL to s
upport it, Twisted can perform only rudimentary TLS client hostname verification
.  Many valid certificate/hostname mappings may be rejected.
Scrapy  : 0.22.2
lxml    : 3.2.3.0
libxml2 : 2.9.0
Twisted : 14.0.0
Python  : 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
Platform: Windows-7-6.1.7601-SP1

请问这是什么?如何解决?

我正在使用Windows 7


1
pip install service_identity

它抱怨说你没有service_identity。有关模块的更多信息,请参见PYPI。