Mac 加载mnist数据集 报错(Process finished with exit code 134 (interrupted by signal 6: SIGABRT))

一、环境:

MacOS
pycharm
tensorflow 1.14
numpy 16.04

二、报错描述:

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/.
[1]    5792 abort      python mnist.py

三、原因:

程序。这是危险的,因为它会降低性能或导致不正确的结果。最好的方法是确保只有一个OpenMP运行时被链接到进程中,例如避免在任何库中使用OpenMP运行时的静态链接。作为一种不安全的、不受支持的、未归档的解决方案,您可以将环境变量KMP_DUPLICATE_LIB_OK=TRUE设置为允许程序继续执行,但这可能会导致崩溃或产生不正确的结果。有关更多信息,请参见http://www.intel.com/software/products/support/。
终止python mnist.py

四、解决问题:

1、点击run,打开Edit Configurations
在这里插入图片描述
2、打开环境配置
在这里插入图片描述
3、环境设置为:KMP_DUPLICATE_LIB_OK=TRUE
在这里插入图片描述

发布了45 篇原创文章 · 获赞 28 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/m0_43505377/article/details/103945714