python没有名为service_identity的模块

时间:2014-06-06 19:40:09

标签: python python-2.7 scrapy

我尝试更新scrapy,当我尝试检查版本时出现以下错误

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 个答案:

答案 0 :(得分:64)

pip install service_identity

抱怨你没有service_identity。有关该模块的更多信息,请参见here on PyPI