When I do pip install xgboost
in the python3 environment built with pyenv, it says thatclang-omp ++
is missing. When I do brew install clang-omp
, it comes with llvm
, so I'm told to put it in. However, it is said that there is no brew install llvm
. I googled variously and knew that if I put a symbolic link, it would be manageable
brew install llvm
ln -s /usr/local/opt/llvm/bin/clang /usr/local/bin/clang-omp
ln -s /usr/local/opt/llvm/bin/clang++ /usr/local/bin/clang-omp++
ln -s /usr/local/opt/llvm/lib/libomp.dylib /usr/local/lib/libomp.dylib
pip install xgboost
I wonder if this is really okay ...
Recommended Posts