【求助】pip上安装xgboost提示Command errored out with exit status 1

在尝试使用pip3.8安装xgboost时,遇到了错误,错误信息显示命令执行退出状态为1。具体错误包括'cmake'命令未找到,导致多线程和单线程xgboost构建失败,最终因找不到XGBoost库路径而报错。这可能是因为缺少编译器或者没有在根目录下运行build.sh。
摘要由CSDN通过智能技术生成

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

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值