Installing XGBoost on OS X

Today I went to install XGBoost on OS X Sierra and ran into some issues. Here’s how I fixed it.

git clone --recursive https://github.com/dmlc/xgboost
brew install gcc
export CC=/usr/local/bin/gcc-7
export CXX=/usr/local/bin/g++-7
cd xgboost
cp make/config.mk ./config.mk
make -j4
cd python-package
python3 setup.py install

Comments