xgboost填坑
安装说明
OSX
git clone --recursive https://github.com/dmlc/xgboost- gcc6 install
- gcc7支持有问题
- 降级版本安装
brew install gcc@6 --without-multilib
- 配置与编译
1 | cd xgboost; cp make/minimum.mk ./config.mk; make -j4 |
【可选】清楚之前的编译内容
- make clean
- make distclean
终极情况。。。
清理系统版本gcc
1
2cd /usr/bin/
rm cc gcc c++ g++
* 配置6系列的gcc,注意看一下自己gcc的版本号
1
2
3
4
ln -s /usr/local/Cellar/gcc\@6/6.4.0/bin/gcc-6 cc
ln -s /usr/local/Cellar/gcc\@6/6.4.0/bin/gcc-6 gcc
ln -s /usr/local/bin/c++-6 c++
ln -s /usr/local/bin/g++-6 g++
- 如何安装到anaconda
sudo /Users/alithink/anaconda/bin/ipython3 setup.py install