pyinstaller运行时显示matplotlib相关模块导入错误

pyinstaller运行时显示matplotlib相关模块导入错误:

pyinstaller运行时显示matplotlib相关模块导入错误
使用Pyinstaller打包真的是坎坷,N多的错误,最后这个错误折磨了我许久,Pyinstaller可以将程序打包成功,可是却不能运行

***解决的方法是:***将matplotlib卸载pip uninstall matplotlib
然后到这个网站:https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
下载whl文件然后安装:pip install matplotlib-3.1.1-cp37-cp37m-win_amd64.whl
然后成功后重新打包,打包后的程序就能成功运行了