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