小编Tia*_*ang的帖子

使用“pip3 install xgboost”安装时出错

我尝试遵循本指南:https : //xgboost.readthedocs.io/en/latest/build.html 但我收到了这些错误消息。任何见解?

(base) MacBook-Pro-2:~ Prajnajiang$ pip3 install xgboost 使用缓存的 xgboost-1.0.2.tar.gz (821 kB) 错误:命令出错,退出状态 1:命令:/Users/apple/opt /anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5y/6cyzpgbx7895mzf3wfvryvrr0000gn/T/pip-install-quq3h_3t/xgboost/setup.py'"'"'; file ='"'"'/private/var/folders/5y/6cyzpgbx7895mzf3wfvryvrr0000gn/T/pip-install-quq3h_3t/xgboost/setup.py'"'"';f=getattr(tokenize, '"'"'open' "'"', open)( file );code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"-DUSE_OPENMP=0 ./xgboost/build-python.sh: line 27: cmake: command not found 回溯(最近一次调用):文件“”,第 1 行,文件“/private/var/folders/5y/6cyzpgbx7895mzf3wfvryvrr0000gn /T/pip-install-quq3h_3t/xgboost/setup.py”,第 42 行,在 LIB_PATH = libpath'find_lib_path' 文件“/private/var/folders/5y/6cyzpgbx7895mzf3wfvryvrr0000gn/T/pip-install3_txgbost /libpath.py”,第 50 行,在 find_lib_path '候选列表:\n' + ('\n'.join(dll_path))) XGBoostLibraryNotFound:在候选路径中找不到 XGBoost 库,您是否安装了编译器并运行构建.sh 在根路径中?候选列表:/private/var/folders/5y/6cyzpgbx7895mzf3wfvryvrr0000gn/T/pip-install-quq3h_3t/xgboost/xgboost/libxgboost。

macos installation command-line python-3.x xgboost

0
推荐指数
1
解决办法
3457
查看次数

标签 统计

command-line ×1

installation ×1

macos ×1

python-3.x ×1

xgboost ×1