Mac环境下 Django 中lightgbm提示Reason: image not found解决方法

报错内容:

OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/
python3.7/site-packages/lightgbm/lib_lightgbm.so, 6): 
Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/
site-packages/lightgbm/lib_lightgbm.so

Reason: image not found

解决方法:终端执行如下指令

brew install libomp

Mac 错误提示:zsh: command not found: brew解决方法:mac 安装homebrew

完整指令如下(选择1中科大/2清华的都行,放心大胆的执行Y就行):

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容