MAC system + anaconda3 + Python 3 eight point eight
The two integrated learning algorithm packages lightgbm and xgboost were successfully installed
, but errors were always reported during import
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-5-b18b3f8a6dc8> in <module>
----> 1 import lightgbm
dlopen(/Users/kumahiroshi/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so, 6): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
Referenced from: /Users/kumahiroshi/opt/anaconda3/lib/python3.8/site-packages/lightgbm/lib_lightgbm.so
Reason: image not found
Always report: oserror reason: image not found
After consulting the data, it is found that you only need to re import this line of code after running on the terminal: brew install libomp
brew install libomp
Done!
Need to install: Homebrew,
Install commands:ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"