Lightgbm OSError, Library not loaded

前端 未结 7 919
抹茶落季
抹茶落季 2021-02-13 03:03

If I simply do:

import lightgbm as lgb

I\'m getting

python script.py 
Traceback (most recent call last):
File \"script.py\", li         


        
7条回答
  •  忘掉有多难
    2021-02-13 03:17

    Same error, different source: seems like I had the gcc 8 version installed, and it needs gcc 7.

    It worked by switching it back to last gcc 7 version:

    brew switch gcc 7.3.0_1
    

提交回复
热议问题