【求助】pip上安装xgboost提示Command errored out with exit status 1
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/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/
Complete output (27 lines):
++ pwd
+ oldpath=/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost
+ cd ./xgboost/
+ mkdir -p build
+ cd build
+ cmake …
./xgboost/build-python.sh: line 21: cmake: command not found
+ echo -----------------------------
-----------------------------
+ echo ‘Building multi-thread xgboost failed’
Building multi-thread xgboost failed
+ echo ‘Start to build single-thread xgboost’
Start to build single-thread xgboost
+ cmake … -DUSE_OPENMP=0
./xgboost/build-python.sh: line 27: cmake: command not found
Traceback (most recent call last):
File “”, line 1, in
File “/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/setup.py”, line 42, in
LIB_PATH = libpath’find_lib_path’
File “/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/xgboost/libpath.py”, line 47, in find_lib_path
raise XGBoostLibraryNotFound(
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/xgboost/libxgboost.dylib
/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/xgboost/…/…/lib/libxgboost.dylib
/private/var/folders/8d/vccfl1bd4036kqv08hxf9v540000gn/T/pip-install-q6l78f3s/xgboost/xgboost/./lib/libxgboost.dylib
/Library/Frameworks/Python.framework/Versions/3.8/xgboost/libxgboost.dylib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
- 点赞
- 收藏
- 分享
- 文章举报
- 求助pip install psychopy报错ERROR: Command errored out with exit status 1: python setup.py egg_info Chec
- ubuntu18.04 python3.7 pip安装mysqlclient报错ERROR: Command errored out with exit status 1
- pip3安装出现ERROR: Command errored out with exit status 1:
- python2.7 安装MYSQL-python 报错:ERROR: Command errored out with exit status 1:
- MAC pycharm安装pandas报错:Command errored out with exit status 1
- imgaug库安装失败:OSError: [WinError 126] 找不到指定的模块;ERROR: Command errored out with exit status 1
- python 利用cmd给pip升级,具体操作及问题与报错ERROR: Command errored out with exit status 1
- 解决python3.7安装turtle报错ERROR: Command errored out with exit status 1:
- 用pip下载beatifulSoup报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
- python安装psycopg2 报错 ERROR: Command errored out with exit status 1
- 安装pycocotools报错ERROR:Command errored out with exit status 1: python setup.py egg_info Check the logs
- python安装第三方库遇到 ERROR: Command errored out with exit status 1:
- python3用pip安装wordcloud库出现command 'x86_64-linux-gnu-gcc' failed with exit status 1
- 词云:解决pip install wordcloud安装过程中报错“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”问题
- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- pip安装模块时:error: command 'gcc' failed with exit status 1
- 成功解决ERROR: Command errored out with exit status 1: command: 'f:\program files\python\python36\pyt
- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm
- 【宝塔面板】使用过程中遇到的问题 - ERROR: Command errored out with exit status 1解决方案