Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

报错时执行的代码:

from skimage import transform as trans

Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

解决方法1:

允许副本存在,忽略报错;在程序开头添加如下代码:

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

这两句代码要放在文件的顶头部分,且保证两句接连的前后顺序关系,即不要在这两个语句之间插入其他语句。

解决方式二:


把numpy卸载干净再重装。

pip uninstall numpy
pip install numpy

参考:

解决Initializing libiomp5md.dll, but found libiomp5md.dll already initialized问题_i_sai的博客-CSDN博客

你可能感兴趣的:(python基础,c++,c#)