在mac上使用pip3 install lightgmb 安裝LightGMB成功。但是當(dāng)輸入import?lightgmb,會報錯:
Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
解決辦法是:
brew?install libomp
如果mac上沒有Homebrew,首先需要下載,然后運(yùn)行上述的commend line
下載Homebrew的方法:
1. 打開terminal
2. 輸入commend line:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
出現(xiàn)“Installation successful!” 說明安裝成功。