Scrapy ImportError:DLL加载失败:找不到指定的过程

时间:2017-07-09 13:53:55

标签: python-3.x lxml importerror

我正在尝试创建一个scrapy项目,但每次尝试scrapy startproject tutorial时都会出现以下错误:

Traceback (most recent call last):
  File "c:\python 3.6\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python 3.6\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python 3.6\Scripts\scrapy.exe\__main__.py", line 5, in <module>
  File "c:\python 3.6\lib\site-packages\scrapy\__init__.py", line 34, in <module>
    from scrapy.spiders import Spider
  File "c:\python 3.6\lib\site-packages\scrapy\spiders\__init__.py", line 10, in <module>
    from scrapy.http import Request
  File "c:\python 3.6\lib\site-packages\scrapy\http\__init__.py", line 11, in <module>
    from scrapy.http.request.form import FormRequest
  File "c:\python 3.6\lib\site-packages\scrapy\http\request\form.py", line 11, in <module>
    import lxml.html
  File "c:\python 3.6\lib\site-packages\lxml\html\__init__.py", line 54, in <module>
    from .. import etree
ImportError: DLL load failed: The specified procedure was not found.

我在Windows 10上,lxml版本为3.8.0

修改

here安装非正式版本(lxml-3.8.0-cp36-cp36m-win32.whl)后,它可以正常工作。

0 个答案:

没有答案