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

后端 未结 9 1179
感动是毒
感动是毒 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:56

    Try to change the backend of matplotlib.

    For example, Tkagg backend causes this problem in my case. I changed it to Qt5Agg

    matplotlib.use('Qt5Agg') 
    

    and it helps.

提交回复
热议问题