zihaodeMacBook-Air:~ zihaofu$ pip3.8 install xgboost
Collecting xgboost
Using cached xgboost-1.0.1.tar.gz (820 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/setup.py’"’"’; file=’"’"’/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/pip-egg-info
cwd: /private/var/folders/8d/vc
【求助】pip上安装xgboost提示Command errored out with exit status 1
最新推荐文章于 2021-02-19 20:45:17 发布
在尝试使用pip3.8安装xgboost时,遇到了错误,错误信息显示命令执行退出状态为1。具体错误包括'cmake'命令未找到,导致多线程和单线程xgboost构建失败,最终因找不到XGBoost库路径而报错。这可能是因为缺少编译器或者没有在根目录下运行build.sh。
摘要由CSDN通过智能技术生成