window 安装scrapy

Windows安装scrapy

稍微有点麻烦

pip install scrapy 

需要依赖的库通过log都可以解决,但是卡在了twisted上面,报错显示:

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

无奈,百度之,得知需要自己下载twisted 的whl文件,自己本地安装

根据教程访问那个网站,无奈墙太高,那个网站半天不回应,卡了好久,结果转头继续找

http://fstab.net/pypi/simple/twisted/

找到这个网站,OK啦,啊哈哈哈哈

找到适合你的python版本的文件,下载之

打开cmd ,cd到文件所在目录,pip install xxxxxxx.whl 

哈哈哈哈,然后twisted就安装好了

然后 pip install scrapy 

就OK了

 

posted @ 2018-07-13 21:04  Richard56  阅读(92)  评论(0编辑  收藏  举报