尝试安装python数据表时出现C ++编译器错误

时间:2019-07-01 10:27:36

标签: python python-3.x

我正尝试使用'pip'如下所示为python安装'datatable',但出现错误。

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.

我什至为python重新安装了VC ++编译器,并进行了更新:

pip install --upgrade setuptools

1 个答案:

答案 0 :(得分:0)

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