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

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


When running the python code, the following two errors occur.
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.
Add to the code The following two lines can solve the problem

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

Guess you like

Origin blog.csdn.net/qq_43605229/article/details/123829971