发生错误 OMP: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized.

1

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

2

安装nomkl

conda install nomkl

参考https://github.com/dmlc/xgboost/issues/1715