python - 尝试安装 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
解决方案
pip
如果您在 Windows 上,则可以从 0.11 版本开始直接安装数据表。现在可以按照https://datatable.readthedocs.io/en/latest/install.html#install-on-windows上的说明安装库的开发快照。
推荐阅读
- azure - 删除 Azure 资源组中使用时间超过 x 天的所有资源
- sql - SQL 检查已发送消息的响应时间
- ios - iOS 13 应用程序的“启用多个窗口”设置(仅限 iPhone)
- python - 从两个不同的模块添加两个字段 django module
- typescript - 如何让抽象类中的函数返回打字稿中子类的实例
- java - 使用 RxJava 进行分组移动平均
- r - Amazon S3 和 QGIS 之间的集成
- elasticsearch - 在 Elasticsearch 中实现基于限制的查询
- mips - 从字符串和打印 MIPS 中删除空格
- javascript - 将表单数据解析为 javascript 中的对象(无法读取未定义的属性“名称”)