pip install安装第三方库 error: Microsoft Visual C++ 14.0 or greater is required

07-17 1150阅读

原因:

在windows出现此情况的原因是pip安装的库其中部分代码不是python而是使用C++等代码编写,我们安装这种类型的库时需要进行编译后安装。

  1. 安装Microsoft C++ Build Tools软件,但这种方式对于很多人来说过于笨重。(不推荐)

安装时注意勾选:左上角的C++应用 和右下角的c++ATL

pip install安装第三方库 error: Microsoft Visual C++ 14.0 or greater is required

  1. 安装他人编译完成的库文件,在pip中,这种编译完成后的文件的后缀为.whl(推荐)
  2. conda指定channel配置(推荐)

conda install libpython m2w64-toolchain -c msys2

                        

原文链接:https://blog.csdn.net/weishuai90/article/details/128750678

VPS购买请点击我

文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

目录[+]