【问题标题】:Pandas installation not recognising a C++ installPandas 安装无法识别 C++ 安装
【发布时间】:2018-07-03 20:14:25
【问题描述】:

我正在为新机器上的图论项目安装 Pandas 以及其他一些依赖项。

我使用pip 安装所有依赖项,使用pip install pandas 安装Pandas。

安装失败:

    running build_ext
    building 'pandas._libs.algos' extension
    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 ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptool
s, tokenize;__file__='C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-q9t
aeyul\\pandas\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read
().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" instal
l --record C:\Users\USER\AppData\Local\Temp\pip-record-9bazi_ha\install-reco
rd.txt --single-version-externally-managed --compile" failed with error code 1 i
n C:\Users\USER\AppData\Local\Temp\pip-install-q9taeyul\pandas\

然后我开始从this link 安装 Microsoft Visual C++ 2015 Redist 14.0。

C++ 2015 Redist 版本号是 14.0.23026(64 位)和 14.0.24215(32 位)。我还有其他年份的各种其他 C++ Redists,一直到 2005 年。

我在安装 Redist 后重新启动了计算机,只是为了确保这方面没有问题。但是,我仍然遇到同样的错误。
我在 Windows 8.1 上。

【问题讨论】:

    标签: python-3.x pandas visual-c++ pip


    【解决方案1】:

    Visual C++ Redistributable 安装运行时库并可用于运行用 VC 编写的应用程序。但是您需要 Visual C++ 编译器!所以安装Build Tools

    【讨论】:

      猜你喜欢
      • 2015-02-08
      • 2011-08-10
      • 2015-01-06
      • 2020-12-12
      • 2014-04-17
      • 1970-01-01
      • 1970-01-01
      • 2020-09-14
      • 2022-01-15
      相关资源
      最近更新 更多