admin管理员组

文章数量:1558072

原文链接

0)安装git:

sudo apt-get install git

1)安装xgboost:

git clone --recursive https://github/dmlc/xgboost
如果是未联网的机器,先去https://github/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/simple/

 

本文标签: XgboostLinuxAnaconda