首页 > 解决方案 > Pyinstaller Python 和 Matplotlib 版本在处理可执行文件 Windows 10 时导致 RuntimeError

问题描述

我已经在 Windows 10 中使用 pyinstaller 4.0、python 3.8 和 Matplotlib 3.3 版处理了一个 exe。我使用控制台执行该文件。

file.exe arg1 arg2 arg3

然后出现错误。

RuntimeError: Could not find the matplotlib data files.

你能帮忙解决问题吗。

标签: pythonwindowsmatplotlibpyinstaller

解决方案


在这里发现了类似的问题

他们现在可以通过降级 matplotlib 来解决这个问题。

pip install matplotlib==3.0.3


推荐阅读