tensorflow与numpy版本对应问题

Using TensorFlow backend.
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 “

ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
2020-09-22 23:55:27.862404: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr

Process finished with exit code -1073740791 (0xC0000409)

这个是因为numpy的版本过低,与tensorflow的版本不匹配造成的,现在numpy的版本是1.14.0,tensorflow的版本是1.13.1。将numpy升级到1.17.4既可以了。
tensorflow与numpy版本对应问题_第1张图片

你可能感兴趣的:(python)