mac上安装xgboost报错

使用pip命令在mac上安装xgboost报错:pip install xgboost

结果如下:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/6c/jxn8_0cd63bd4db6h58z031msk7pn1/T/pip-build-f8_mJP/xgboost/


解决方法如下:使用源码安装

参考官方的安装方法即可,终端依次执行如下语句

git clone --recursive http://github.com/dmlc/xgboost
cd xgboost; cp make/minimum.mk ./config.mk; make -j4
cd python-package; sudo python setup.py install
  • 1
  • 2
  • 3
  1. 官方参考链接:http://xgboost.readthedocs.io/en/latest/build.html


猜你喜欢

转载自blog.csdn.net/j754379117/article/details/78389415