一、先安装git python
ubuntu: apt-get install gitgit
centos: yum install gitgithub
二、下载xgboost仓库,注意有--recursive(有子模块哦)ubuntu
git clone --recursive https://github.com/dmlc/xgboost.git
cd xgboost
./build.sh
cd python-package
python setup.py installcentos
三、测试测试
pythonui
import xgboostget