2017-04-12 75 views
0

Windows XP,Anaconda。執行「scrapy startproject教程」命令後,我得到以下錯誤和回溯歷史記錄。作爲參考,我主要是以下這個文件的說明:https://doc.scrapy.org/en/latest/intro/tutorial.htmlWIndows XP家庭版scrapy startproject錯誤

命令提示符歷史

C:\Documents and Settings\HP_Owner\Desktop\Anaconda>scrapy startproject tutorial 

Traceback (most recent call last): 
    File "C:\Documents and Settings\HP_Owner\Desktop\Anaconda\Scripts\scrapy-scrip 
t.py", line 3, in <module> 
    import scrapy.cmdline 
    File "C:\Documents and Settings\HP_Owner\Desktop\Anaconda\lib\site-packages\sc 
rapy\__init__.py", line 34, in <module> 
    from scrapy.spiders import Spider 
    File "C:\Documents and Settings\HP_Owner\Desktop\Anaconda\lib\site-packages\sc 
rapy\spiders\__init__.py", line 10, in <module> 
    from scrapy.http import Request 
    File "C:\Documents and Settings\HP_Owner\Desktop\Anaconda\lib\site-packages\sc 
rapy\http\__init__.py", line 11, in <module> 
    from scrapy.http.request.form import FormRequest 
    File "C:\Documents and Settings\HP_Owner\Desktop\Anaconda\lib\site-packages\sc 
rapy\http\request\form.py", line 9, in <module> 
    import lxml.html 
    File "C:\Documents and Settings\HP_Owner\Desktop\Anaconda\lib\site-packages\lx 
ml\html\__init__.py", line 54, in <module> 
    from .. import etree 
ImportError: DLL load failed: The specified module could not be found. 

回答

0

看起來像你缺少的LXML的DLL,你可以從here得到所有的蟒蛇庫。嘗試從那裏安裝lxml。

相關問題