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

调程序时遇到问题

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

加上以下两行就好了:

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

 

你可能感兴趣的:(Python杂谈,Python杂谈,OMP,Error,#5)