Skip to content

Instantly share code, notes, and snippets.

@sflender
Last active January 5, 2018 20:06
Show Gist options
  • Select an option

  • Save sflender/c7465f684edeeade585bc198d970fe94 to your computer and use it in GitHub Desktop.

Select an option

Save sflender/c7465f684edeeade585bc198d970fe94 to your computer and use it in GitHub Desktop.
Install xgboost on MacOS

Here's how I installed xgboost on my Mac. First, install gcc:


brew install gcc

Then clone the repo:


git clone --recursive https://github.com/dmlc/xgboost 
cd xgboost
cp make/config.mk .

inside config.mk make the following change:


export CC = gcc-7
export CXX = g++-7

then:


make -j4
cd python-package/
python setup.py install

this should install xgboost!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment