Skip to content

Instantly share code, notes, and snippets.

@pratos
Last active November 29, 2018 07:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save pratos/de49be8ec53378145ea0df0a04ea7b25 to your computer and use it in GitHub Desktop.
Save pratos/de49be8ec53378145ea0df0a04ea7b25 to your computer and use it in GitHub Desktop.
Install xgboost for Python in Ubuntu

Clone the recursive repo for xgboost

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost
make -j4

cd in the folder: xgboost/python-package

python setup.py install

Install libgcc

conda install libgcc

Go to python shell and type:

import xgboost as xgb
(Shouldn't give you any errors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment