1)在python3.6上 使用python -m pip install scrapy 安装时,出现如下错误:
Microsoft Visual C++ 14.0 is required
2)根据搜索,先需要下载twisted 包,安装成功后,再安装scrapy
安装Twisted包来进一步安装Scrapy。
1.首先打开
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted,找到对应版本的Twisted并下载到你的文件夹。此例为Twisted‑18.7.0‑cp36-36m‑win_amd64.whl
2.利用pip install命令安装指定存储路径下的whl文件。此例如图所示
pip install D:\Twisted-18.7.0-cp37-cp37m-win_amd64.whl
3) 在安装twisted 的whl文件时,发现 is notsupported for this platform .
4) 将下载的Twisted‑18.7.0‑cp36‑cp36m‑win_amd64.whl 更改名字,改成:Twisted‑18.7.0‑cp36‑non-win32.whl,然后成功安装twisted
5) 再重新安装scrapy,成功安装