import os os.environ['KMP_DUPLICATE_LIB_OK']='True' above lines are needed to run on Macbook for "A graphical example", and possibly need to install xgboost as well...