2014-09-22 90 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