Original error was: No module named ‘numpy.core._multiarray_umath‘

本文记录了一次从Python2.6.8升级到Python3.9后遇到的matplotlib无法运行的问题,并给出了详细的解决方案。主要错误为找不到'numpy.core._multiarray_umath'模块,通过卸载并重新安装NumPy解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天卸载了Python2.6.8,安装了python 3.9。发现之前可以跑得matplotlib相关的程序不能运行,显示如下错误:

Please note and check the following:

  * The Python version is: Python3.9 from "C:\python\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'

通过卸载重装解决问题

pip uninstall numpy

pip install --upgrade numpy
#或者
pip  install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值