今天卸载了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