之前安装Scrapy的时候,都是使用工具来安装,这样解决包依赖的问题比较方便,但是最近在使用工具安装Scrapy却一直安装不了,后来在网上找到手工安装的过程,记录如下:
1.安装lxml:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple lxml
2.安装 pyOpenSSL:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyOpenSSL
3.安装Twisted:
到该网站下载自己python版本对应的whl包http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted,然后安装要绝对位置
pip install D:\myspider\Twisted-18.9.0-cp36-cp36m-win_amd64.whl
4.安装scrapy:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scrapy
按照以上步骤即可安装完毕。
出处:https://www.cnblogs.com/cxl07325/p/10843897.html