It's kind of popular, and I'm going to do it with Kaggle, so in the end it's xgboost.
Officially
brew install libomp
do it,
pip3 install xgboost
It's easy to install! If you get a permission error, use --user. homebrew and pip are great! ... noisy! I get an insane error! !!
I had a lot of trouble, so I will write an article in the hope that it will help people in similar circumstances. For those who want to use xgboost anyway, skipping the explanation of the contents.
pip install xgboost
We just share the process starting from, clearing the error and finally installing. Occasionally paste the error text in the comment.
gcc is required.
brew install gcc
At this stage ./xgboost/build-python.sh: line 21: cmake: command not found Because there was an error
brew install cmake
Next took time. To set the compiler to use
export CC=gcc-5
export CXX=g++-5
In my case, I did the above, Could not find compiler set in environment variable CC: CC=gcc-5 The punch line was just a typo, but it took a long time.
Recommended Posts