安装scrapy出错解决方式

Error:  An error occurred while installing scrapy!
  Failed building wheel for Twisted 或者lxml
Command "c:\users\jp\.virtualenvs\scrapy-qa89lxkd\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jp\\AppData\\Local\\Temp\\pip-install-ofi8gdc7\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\jp\AppData\Local\Temp\pip-record-tq3m5wwq\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\jp\.virtualenvs\scrapy-qa89lxkd\include\site\python3.6\Twisted" failed with error code 1 in C:\Users\jp\AppData\Local\Temp\pip-install-ofi8gdc7\Twisted\

 

到https://www.lfd.uci.edu/~gohlke/pythonlibs

下载对应电脑版本的安装源码

 

之后把文件放到项目路径下,运行pipenv install filename

posted @ 2018-09-26 22:12  修瑾  阅读(476)  评论(0编辑  收藏  举报