问题描述
- Failed building wheel for Twisted...
- Microsoft Visual C++ 14.0 is required
解决办法
- 安装wheel库
pip install wheel
(安装过请无视) - 下载Scrapy的whl包https://www.lfd.uci.edu/~gohlke/pythonlibs/ 下载Scrapy‑1.5.0‑py2.py3‑none‑any.whl
- 下载Scrapy依赖库twisted,进入https://www.lfd.uci.edu/~gohlke/pythonlibs/ 下载对应版本,如Twisted‑18.4.0‑cp36‑cp36m‑win_amd64.whl
- 安装Scrapy依赖lxml包,
pip install lxml
- 进入下载存放目录,安装
pip install Twisted‑18.4.0‑cp36‑cp36m‑win_amd64.whl
- 进入下载存放目录,安装
pip install Scrapy‑1.5.0‑py2.py3‑none‑any.whl
- 验证,
scrapy -h
,显示版本号,成功