一、先安裝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