python报错

OMP: 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.

解决方案

在代码前面加上

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

 即可正常运行

 

你可能感兴趣的:(python,经验分享,机器学习,python)