Scrapy安装错误:Microsoft Visual C++ 14.0 is required...
问题描述
当前环境win7,python_3.6.8,64位。
在windows下,在dos中运行pip install Scrapy报错:
building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
解决方案
http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twisted对应版本的whl文件(如我的Twisted‑17.5.0‑cp36‑cp36m‑win_amd64.whl),cp后面是python版本,amd64代表64位,运行命令:
pip install C:\Users\CR\Downloads\Twisted-17.5.0-cp36-cp36m-win_amd64.whl
其中install后面为下载的whl文件的完整路径名
安装完成后,再次运行:
pip install Scrapy
即可成功。
转载自:http://blog.csdn.net/nima1994
Ideal are like the stars --- we never reach them ,but like mariners , we chart our course by them