当前位置: 代码迷 >> 综合 >> Python杂谈 | (12) OMP: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initia
  详细解决方案

Python杂谈 | (12) OMP: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initia

热度:86   发布时间:2024-01-15 00:29:54.0

调程序时遇到问题

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

加上以下两行就好了:

import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"

 

  相关解决方案