Mac利用homebrew安装xgboost(傻瓜教程)

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章