关于python 3.x:导入tensorflow时,我得到以下错误:No module named ‘numpy.core._multiarray_umath’

When importing tensorflow, I get the following error: No module named 'numpy.core._multiarray_umath'

我安装了ancaconda3和tensorflow。当我尝试在python shell中导入tensorflow时,会收到以下错误:

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"", line 980, in _find_and_load SystemError:
returned a result with
an error set ImportError: numpy.core._multiarray_umath failed to
import ImportError: numpy.core.umath failed to import

我不确定问题是什么,因为numpy安装在我的系统上,可以在python中成功导入。我正在使用Windows10。

事先谢谢。


我也有同样的问题。一旦我把numpy从1.15.4升级到1.16.1,它就被重新爱上了。

如果使用PIP:pip install numpy --upgrade

水蟒3附带的麻木版本是1.15.4。所以我升级了,它工作了。

希望它有帮助!!