python 安装matplotlib后运行图表时提示错误numpy版本不对的解决方法

时间:2022-09-04 12:11:51

python3.6,安装了Matplotlib 2.2版本,运行图表时提示以下错误:

ImportError:  Importing the multiarray numpy extension module failed.

likely you are trying to import a failed build of numpy.


If you're working with a numpy git repo, try `git clean -xdf` (removes all

files not under version control).  Otherwise reinstall numpy.


原因是要安装numpy+mkl版本(cp36)

解决办法,卸载掉mumpy后再重新安装正确的版本(.whl):http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy