python3.6安装插件报错error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++

报错如下:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command "e:\soft\python3.6_x64\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\RJ-TR19\\AppData\\Local\\Temp\\pip-build-q2fmqstd\\pycrypto\\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\RJ-TR19\AppData\Local\Temp\pip-dchg89ka-record\install-record.txt --
single-version-externally-managed --compile" failed with error code 1 in C:\Users\RJ-TR19\AppData\Local\Temp\pip-build-q2fmqstd\pycrypto\

最后的pycrypto说明缺少该包,需要安装

方式一、根据情况选择,该方式不是很建议,否则撞不上的每次都要下载一个文件安装

1、下载pycrypto-2.6.1-cp36-cp36m-win_amd64.whl文件(该文件目前备份于自己系统中)

将文件拷贝到本地python安装包E:\SOFT\Python3.6_x64\Scripts目录下,然后在Scripts目录下打开cmd窗口,运行

pip install pycryptosat‑0.2.0‑cp36‑cp36m‑win_amd64.whl

2、其他的插件访问https://www.lfd.uci.edu/~gohlke/pythonlibs/里面搜索查找版本,安装方式相同

方式二、下载Microsoft Visual C++ 14.0

选择默认方式安装即可,电脑也不用重启,直接pip安装所需要的插件就行

地址:https://pan.baidu.com/s/18bjsvBIgBAhn5_6ApMcFew 密码: zkzf

猜你喜欢

转载自blog.csdn.net/weixin_41996632/article/details/88793324