python用pyintaller打包有matplotlib库的程序后运行报错

打包完后可以运行,运行过程中报错,下面是报错信息。
ImportError: matplotlib is required for plotting when the default backend "matplotlib" is selected.

img

github有解决方案,具体可以参考:


如果对你有帮助,可以点击我这个回答右上方的【采纳】按钮,给我个采纳吗,谢谢