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

229 阅读1分钟

报错如下:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": 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说明缺少该包,需要安装

下载Microsoft Visual C++ 14.0

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

链接: pan.baidu.com/s/19acaPPdH… 提取码: yr8v