2014-09-22 44 views
0

当我尝试创建新的Scrapy项目时出现此错误。scrapy startproject教程:运行此命令时出错

C:\Windows\system32>Scrapy startproject tutorial 
c:\Python27\lib\site-packages\twisted\internet\_sslverify.py:184: UserWarning: Y 
ou do not have the service_identity module installed. Please install it from <ht 
tps://pypi.python.org/pypi/service_identity>. Without the service_identity modul 
e and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimenta 
ry TLS client hostnameverification. Many valid certificate/hostname mappings ma 
y be rejected. 
verifyHostname, VerificationError = _selectVerifyImplementation() 
New Scrapy project 'tutorial' created in: 
C:\Windows\system32\tutorial 

You can start your first spider with: 
cd tutorial 
scrapy genspider example example.com 
+0

off topic,为什么你在system32目录中创建你的项目? – 2014-09-22 17:44:13

+0

我没有看到任何错误,您发布的内容中只有一条警告。 – starrify 2014-09-22 17:58:06

+0

@salmanwahed,它从一开始就在那里创建。那是不应该在那里的东西? – sammkj 2014-09-22 21:32:53

回答

0

这只是一个警告,扭曲将无法识别SSL站点。要摆脱警告安装service_identity模块:

pip install service_identity 
相关问题