带有 matplotlib 的 pyinstaller windows

pyinstaller with matplotlib windows

我使用 pyinstaller 生成带有 matplotlib exe 文件的 pythion 程序 exe生成的很好,但是使用exe的时候报错说no module named 'tz' 这是什么意思?

我已经用没有 matplotlib 的 numby 和 pyqt4 程序测试了 pythinstaller,它运行良好enter image description here! )

我在 Cecil Curry 提供的 pyinstaller git hub 上找到了解决方案。 这是: 这是一个已知的问题。不幸的是,python-dateutil 2.5.0 目前在 PyInstaller 方面被破坏了。

直到 python-dateutil 发布新的稳定版本来纠正这个问题,考虑暂时降级到 python-dateutil 2.4.2。对于给您带来的不便,我们深表歉意——尽管如此,还是感谢您花时间报告此事。

我已经测试过并且有效