Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized

后端 未结 9 1200
感动是毒
感动是毒 2020-12-01 05:34

Getting the error message when using matplotlib:

Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized OMP: Hin

9条回答
  •  广开言路
    2020-12-01 05:38

    So, for those of you getting this same issue with lightgbm, I found in the documentation that you can

    1. pip uninstall lightgbm
    2. pip install lightgbm
    3. Run the following in anaconda environmnet (if you're running Conda)
    ln -sf `ls -d "$(brew --cellar libomp)"/*/lib`/* $CONDA_PREFIX/lib
    

    These three things worked for me.

提交回复
热议问题