error: Microsoft Visual C++ 14.0 is required.CommandCommand "g:anaconda3python.exe -u -c "import s - Go语言中文社区

error: Microsoft Visual C++ 14.0 is required.CommandCommand "g:anaconda3python.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:anaconda3python.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('rn', 
'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:Usersqixing
AppDataLocalTemppip-record-9sfcijgvinstall-record.txt --single-version-externally-
managed --compile" failed with error code 1 in C:UsersqixingAppDataLocalTemppip-
install-zzxvtbeaTwisted

这个是我本人在执行

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
这里写图片描述
安装结束!完美解决!!喜欢可以收藏互粉下

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_36968512/article/details/81413364
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-07 20:46:16
  • 阅读 ( 1054 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢