At first, when I piped, I got an error, and I wrote that I should make it, but I didn't want to make it, so I looked it up. Conclusion When I put a new gcc, it passed pip.
brew install gcc@5
pip install xgboost
https://github.com/dmlc/xgboost/issues/1501