- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
在使用 matplotlib 时获取错误信息:
Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized OMP: Hint: This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
最佳答案
执行以下操作来解决问题:
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'
答案位于:https://github.com/dmlc/xgboost/issues/1715
注意潜在的副作用:
but that may cause crashes or silently produce incorrect results.
关于python - Error #15 : Initializing libiomp5. dylib,但发现 libiomp5.dylib 已经初始化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53014306/
我是一名优秀的程序员,十分优秀!