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

Problem: libiomp5md.dll in the numpy package installed by Anaconda conflicts with libiomp5md.dll in pytoch

Solution:

    1. add environment variable:
import os 
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"

Reduce numpy version

pip install -U numpy==1.16.5

Done!


Read More: