首页 > 解决方案 > 尝试安装 python 数据表时出现 C++ 编译器错误

问题描述

我正在尝试使用如下所示的“pip”为 python 安装“数据表”,但出现错误。

pip install datatable

显示的错误是:

Find an LLVM installation
  Environment variable LLVM is not set
  Environment variable LLVM7 is not set
  Environment variable LLVM6 is not set
  Environment variable LLVM5 is not set
  Environment variable LLVM4 is not set
  Candidate directory `/usr/local/opt/llvm` not found
  The build will proceed without Llvm support

Determine the compiler
  Environment variable `CXX` is not set
  Environment variable `CC` is not set
  Llvm installation not found, cannot search for the clang++ compiler
  'compiler_cxx'
  Compiler `clang++.exe` is not found
  Compiler `gcc.exe` is not found

Prepare the environment
SystemExit: Suitable C++ compiler cannot be determined. Please specify a compiler executable in the `CXX` environment variable.

我什至重新安装了 VC++ Compiler for Python 并更新了:

pip install --upgrade setuptools

标签: pythonpython-3.xpy-datatable

解决方案


pip如果您在 Windows 上,则可以从 0.11 版本开始直接安装数据表。现在可以按照https://datatable.readthedocs.io/en/latest/install.html#install-on-windows上的说明安装库的开发快照。


推荐阅读