Install Python3 and create a virtual environment:
yes | sudo yum install python36python3 -m venv envsource env/bin/activateAdd the virtual environment to the python path:
export PYTHONPATH="/home/ec2-user/.local/lib/python3.6/site-packages/"Then install git and gcc:
yes | sudo yum install gityes | sudo yum install gcc-c++Installing xgboost from source:
git clone --recursive https://github.com/dmlc/xgboost.gitcd xgboostmakecd python-packagepython setup.py install --userInside a python REPL:
import xgboost as xgb