在python3中导入keras时出现numpy.core.umath错误

时间:2019-02-27 03:19:38

标签: python keras

当我在python中运行导入keras时,它返回此错误:

Using TensorFlow backend.
--------------------------------------------------------------------------- 
RuntimeError                              
Traceback (most recent call
last) RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
--------------------------------------------------------------------------- 
ImportError                               
Traceback (most recent call last) ImportError: numpy.core.multiarray failed to import
--------------------------------------------------------------------------- 
ImportError                               
Traceback (most recent call last) ImportError: numpy.core.umath failed to import
--------------------------------------------------------------------------- 
ImportError                               
Traceback (most recent call last) ImportError: numpy.core.umath failed to import

一个弹出窗口将显示Python 意外退出。我在这里需要做什么?谢谢。

1 个答案:

答案 0 :(得分:1)

RuntimeError:针对API版本0xc编译的模块,但此版本的numpy为0xb

确保您使用的是可接受的numpy版本。