1. brew install gcc@5
  2. pip install xgboost

Reference:
Problems while installing in OSX 10.11.6?