解决error: Microsoft Visual C++ 14.0 or greater is required.

在编译时报错

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

复制链接进入
解决error: Microsoft Visual C++ 14.0 or greater is required._第1张图片
下载并打开文件
解决error: Microsoft Visual C++ 14.0 or greater is required._第2张图片
安装
解决error: Microsoft Visual C++ 14.0 or greater is required._第3张图片

解决error: Microsoft Visual C++ 14.0 or greater is required._第4张图片
之后重新再git bash 输入命令python setup.py build_ext --inplace
运行成功

你可能感兴趣的:(microsoft,python)