LoginSignup
1
2

More than 5 years have passed since last update.

max osx に python xgboost を入れる(llvm版)

Posted at

pyenv で構築した python3 環境に pip install xgboost すると clang-omp++ が無いと言われる。 brew install clang-omp をすると llvm と一緒になったからそっちを入れろと言われる。だが brew install llvm しても無いと言われる。色々ググって、シンボリックリンクを貼ればなんとかなると知った

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

本当にこれでいいのか疑問だが…

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2