Original error was: No module named ‘numpy.core._multiarray_umath‘
Posted ZSYL
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Original error was: No module named ‘numpy.core._multiarray_umath‘相关的知识,希望对你有一定的参考价值。
问题描述
下载 Tensorflow1.12 版本,之后在PyCharm中报错:
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.6 from "D:\\Anaconda3\\envs\\tensorflow1.0\\python.exe"
* The NumPy version is: "1.19.2"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
解决办法
- 可能是numpy版本过低造成的,因此将numpy更新到最新版本,即可解决!
- 查看numpy的当前版本
conda list numpy
或
pip show numpy
- 更新numpy的版本
pip uninstall numpy
pip install --upgrade numpy
#或者
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
也可以这样:
pip install --upgrade numpy
或
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade numpy
或者:
pip install --user --upgrade numpy # 提升权限
- 可能是numpy版本过高的问题(我之前的numpy版本是1.19,会报这个错,改成了1.14,就不报错了):
pip install numpy==1.14.0
或者:
pip install --upgrade --force-reinstall numpy==1.14.5 # 重新安装合适的numpy版本
如果提示权限不够,‘[WinError 5]拒绝访问’
,则需赋予管理员权限,用下面语句:
pip install --user --upgrade --force-reinstall numpy==1.14.5
加油!
感谢!
努力!
以上是关于Original error was: No module named ‘numpy.core._multiarray_umath‘的主要内容,如果未能解决你的问题,请参考以下文章
Appium1.6启动ios9.3报错Original error: Sdk '9.3.5' was not in list of simctl sdks
Jenkins RestAPI调用出现Error 403 No valid crumb was included in the request
idea maven No implementation for org.apache.maven.model.path.PathTranslator was bound.
At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger fo
Error: Error occured while starting App. Original error: Activity used to start app doesn't exis
javascript shift y unshift VS push y pop VS splice VS slice(no altera el original)