error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build安装scrapy出错解决方法

安装scrapy出现如下错误:
error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”:
在这里插入图片描述
这时不要慌。

第一步

我们点开这个网站:http://fstab.net/pypi/simple/twisted/
下载对应的whl。在这里插入图片描述
cp后面的对应就是Python的版本,如cp36就是Python3.6。
64位操作系统就下载win-amd64,32位下载win32

第二步

打开cmd(以管理员方式)进行安装:

pip install 加上你刚刚下载的whl文件存放的路径

例如:
C:\WINDOWS\system32>pip install d:/pythontest/Twisted-18.7.0.dev0-cp37-cp37m-win_amd64.whl
在这里插入图片描述
安装完成出现:

在这里插入图片描述
成功,进行第三步。
如果出现:
Requirement ‘d:/pythontest/Twisted-18.7.0.dev0-cp37-cp37m-win32.whl’ looks like a filename, but the file does not exist
Twisted-18.7.0.dev0-cp37-cp37m-win32.whl is not a supported wheel on this platform.
在这里插入图片描述
那说明,你下错操作系统(你是64位下了32位的)的whl文件了,重新下一个whl吧,再重新进入第二步。

第三步

输入pip install scrapy
在这里插入图片描述
完成。

测试

输入scrapy -h
出现相关指令表示成功
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Bri0117/article/details/87535637
今日推荐