Skip to content

Instantly share code, notes, and snippets.

@alyato
Forked from pratos/xgboost_python_install.md
Created November 29, 2018 07:23
Show Gist options
  • Save alyato/0f4f8ea31e8653d2ef5507a1caf09d3c to your computer and use it in GitHub Desktop.
Save alyato/0f4f8ea31e8653d2ef5507a1caf09d3c 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