For those who are in trouble with an error when pip install xg boost

It's kind of popular, and I'm going to do it with Kaggle, so in the end it's xgboost.

pip install xgboost error is coming out!

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.

Successfully installed xgboost-The process up to 1.0.2.

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

For those who are in trouble with an error when pip install xg boost
For those who are in trouble because NFC is read infinitely when reading NFC with Python
A memorandum when an error occurs with pip install
For those who are having trouble drawing graphs in python
Explanation for those who are having trouble with "command not found" in rbenv or pyenv
I get an error when trying to install maec 4.0.1.0 with pip
Workaround if you get an error when trying to install PySide with pip
Error with pip install
For Debian users who are having trouble with a bug in the Linux kernel 5.10
I got an error when pip install pandas on Mac, so I dealt with it
For those who should have installed janome properly with Python but get an error
When moss with pip install
Behavior in each language when coroutines are reused with for
I got an error when pip install tweepy on macOS Sierra, so I dealt with it
Solution memo when "ERROR: Command errored out with exit status 1:" is displayed in pip install hogehoge
# Solution when pip install gives an error when using Anaconda on Windows 10
When I get an error with Pylint in Atom on Windows
Proxy error when running "pip install"
I got an SSL related error with pip install, so I solved it
[OSX] [pyenv] What to do when an SSL error occurs in pip
SSL certificate related with pip install? Error
Solution for pip install error [Python] [Mac]
In pip install clang: error: unknown argument:'-mno-fused-madd'
When I get an error with PyInstaller
Tips for those who are wondering how to use is and == in Python
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
[Solved] I have a question for those who are familiar with Python mechanize.
Things to keep in mind when using Python for those who use MATLAB
[Note] The solution for Python on MacOSX where import hashlib causes an error
A memorandum when an error occurs with pip install
Error when installing a module with Python pip
I got an error when saving with OpenCV
Rollback processing when an error occurs with fabric
Error when trying to install psycopg2 in Python
Eliminates SSL error when PIP Install on Windows.
For those who are new to programming but have decided to analyze data with Python
pip install ○○○ error Command errored out with exit status 1:
I get an error when I put opencv in pyautoGUI
For those who want to write Python with vim
When you get an error in python scraping (requests)
Until you install TensorFlow-GPU with pip in Windows environment
I got an error when using Tensorboard with Pytorch
Install tweepy with pip and use it for API 1.1
For those who can't install Python on Windows XP
Environment construction procedure for those who are not familiar with the python version control system
What to do if you get an Undefined error when trying to use pip with pyenv