Problem: libiomp5md.dll in the numpy package installed by Anaconda conflicts with libiomp5md.dll in pytoch
Solution:
-
- add environment variable:
import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
Reduce numpy version
pip install -U numpy==1.16.5
Done!