做项目时遇到以下报错:
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program.
网上查阅资料说是文件重复,但是我并不想去删除文件(可能后面会用到),然后我就加了如下代码,完美解决。
os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE'