error: Microsoft Visual C++ 14.0 is required.CommandCommand "g:\anaconda3\python.exe -u -c "import s

关于pip install jupyter,scrapy等模块的错误
如果在安装python模块的时候报错的话类似下面这些

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Command "g:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users
\\qixing\\AppData\\Local\\Temp\\pip-install-zzxvtbea\\Twisted\\setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\qixing
\AppData\Local\Temp\pip-record-9sfcijgv\install-record.txt --single-version-externally-
managed --compile" failed with error code 1 in C:\Users\qixing\AppData\Local\Temp\pip-
install-zzxvtbea\Twisted\

这个是我本人在执行

pip install scrapy

的时候出现的
解决的办法他只会提醒你安装一个叫Microsoft Visual C++ Build Tools的东西,但是哦我们可以不这么干,你看上面最后一行最后会提示你需要什么,我的提示的就是Twisted这个,

Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

据说这个东西很大,所以我就在联想之前一个大佬给我说的,步骤如下:
1.下载对应的插件
python插件连接
因为我需要的是Twisted, 但是要注意你的版本我的是py36所以下载36的
这里写图片描述
2.下载结束之后进入下载的文件夹里面执行

pip install Twisted-18.7.0-cp36-cp36m-win_amd64.whl

3.出现下图就是成功了
![这里写图片描述](https://img-blog.csdn.net/20180804173438960?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2OTY4NTEy/font/5a6L5L2T/fontsize/400/fill
/I0JBQkFCMA==/dissolve/70)

然后执行pip install scrapy
这里写图片描述
安装结束!完美解决!!喜欢可以收藏互粉下

猜你喜欢

转载自blog.csdn.net/qq_36968512/article/details/81413364