问题描述
在python3中import keras时报错:

完整错误日志:
ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath’
ImportError: numpy.core.multiarray failed to import
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “
SystemError: <class ‘_frozen_importlib._ModuleLockManager’> returned a result with an error set
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
2020-07-05 20:02:22.025374: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr
已放弃 (核心已转储)
解决方法:
从代码中看出是numpy版本不匹配的问题,可以尝试:pip install --user --upgrade numpy
再次在python执行import keras
在末尾出现错误:
解决Python导入Keras失败

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



