When I tried to install Xgboost, I got an error, so record it along with the solution.
environment
macOS version 10.15.4(Catalina)
anaconda3-5.3.1
ERROR
ERROR: Command errored out with exit status 1:
(Omission)
./xgboost/build-python.sh: line 27: cmake: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/15//xgboost/setup.py", line 42, in <module>
LIB_PATH = libpath['find_lib_path']()
File "/private/var/folders/15//xgboost/libpath.py", line 50, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/private/var/folders/15/###############################
/private/var/folders/15/###############################
/private/var/folders/15/###############################
/Users//.pyenv/versions/anaconda3-5.3.1/###############################
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
pip install --upgrade pip setuptools
I got an error statement, so I ran it for the time being. Upgraded but not resolved
brew install gcc@8
This also came out, so I ran it for the time being. I installed it but it didn't work
After all, I decided to read the error message properly Then I found this message.
Error
./xgboost/build-python.sh: line 27: cmake: command not found
** This is it! !! !! !! So, I immediately executed the installation. ** **
terminal
pip install cmake
cmake is installed. Then the favorite xg boost
terminal
pip install xgboost
-----
Successfully built xgboost
Installing collected packages: xgboost
Successfully installed xgboost-1.0.2
-----
Recommended Posts