解决>>> import tensorflow
ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath’ 错误
安装TensorFlow以后,在python编辑器上输入 import tensorflow,报错。
然后:
升级一下你的pip,重新安装一下numpy
pip install --upgrade pip
pip install --upgrade numpy
然后安装成功以后 继续 import TensorFlow
>>> import tensorflow
/Users/mbp/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
好吧,继续报错,在某个网站看到时候要 这样做
pip install numpy==1.16
然后安装成功以后 继续 import TensorFlow
>>> import tensorflow
/Users/mbp/anaconda3/lib/python3.6/site-packages/