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

被折叠的 条评论
为什么被折叠?



