python3.6在win64下安装scrapy出现error

1.问题描述:
在学习使用python爬虫时用到了scrapy模块,使用命令:

pip install scrapy

安装时出现以下错误
这里写图片描述

下面还有:

Command "e:\software\python3.6\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-build-sreiyp_i\\T
wisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" in
stall --record C:\Users\lenovo\AppData\Local\Temp\pip-l_be4288-record\install-record.txt --single-version-externally-managed --compile" failed with e
rror code 1 in C:\Users\lenovo\AppData\Local\Temp\pip-build-sreiyp_i\Twisted\

原本想安装visual c++ 14 但发现很多url链接失效了,查阅了一些博客,可以用下面的方法解决。
2.解决方案
1)打开连接https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
找到符合你电脑系统和python安装版本的twisted
我这里是:win64 python3.6
这里写图片描述
2)打开cmd 输入

pip install C:\Users\lenovo\Downloads\Twisted-17.9.0-cp36-cp36m-win_amd64.whl

3)重新安装scrapy

pip install scrapy

猜你喜欢

转载自blog.csdn.net/u012679583/article/details/79571195
今日推荐