Problem: OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized

Background: This problem has appeared many times when i run the example code of Keras in Jupyter notebook, which could lead the kernel died.

Solutuons: There are three ways to solve this problem.
First way:According to the describtion of this problem, there are two same name files. Then, we could delete one of them and restart the programme. Bye the way, you must restore the file before you decide to delete it.

Second way: When you use the package named “matplotlib”, maybe this package could have an influence on kernel. So, the problem could appear. Then, you could use the terminal to write “conda install nomkl” and this order could help you a lot. It means that installing this package again could make the this package initialized. Maybe, before this problem, the package has been changed.

Third way:

import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'

You could add this code in front of the total programme, maybe it is useful.

Summary: In my situation, i use the second way to solve my problem.

Reference:
https://blog.csdn.net/peacefairy/article/details/110528012

上一篇:OpenFeign配置日志增强功能


下一篇:Seventh season fourth episode,Chandler could not take pictures!!!!!