0)安装git:
sudo apt-get install git
1)安装xgboost:
git clone --recursive https://github.com/dmlc/xgboost
如果是未联网的机器,先去https://github.com/dmlc/xgboost下载源码,再手动传到服务器,解压缩等
1)build:
cd xgboost; make -j4
如果是新机器,发现g++ not found错误:sudo apt-get install g++,再make。
2)
sudo apt-get install python-setuptools
cd python-package;
sudo python setup.py install
export PYTHONPATH=~/xgboost/python-package
anaconda下安装:
安装
pip install xgboost --index https://pypi.mirrors.ustc.edu.cn/simple/