Homebrew國內如何自動安裝(國內地址)常見錯誤參考
xgboost官網 安裝教程
1.安裝Homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2.安裝gcc-6
brew install gcc
3.重點!選擇根目錄作爲安裝xgboost的地址
cd ~
git clone --recursive https://github.com/dmlc/xgboost
4.進入xgboost
目錄編譯
cd xgboost; cp make/config.mk ./config.mk; make -j4
5.安裝Python
包
cd python-package; sudo python setup.py install