WIndows XP Home Edition中的scrapy startproject错误

时间:2017-04-12 16:50:46

标签: scrapy

Windows XP,Anaconda。执行“scrapy startproject tutorial”命令后,我收到以下错误和追溯历史记录。作为参考,我主要遵循本文档的说明:https://doc.scrapy.org/en/latest/intro/tutorial.html

命令提示历史记录

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.

1 个答案:

答案 0 :(得分:0)

看起来你错过了lxml的DLL,你可以从here获得所有的python库。尝试从那里安装lxml。