【发布时间】:2016-03-08 07:42:31
【问题描述】:
我使用 pyinstaller 生成带有 matplotlib exe 文件的 pythion 程序 exe 生成良好,但使用 exe 时出现错误,提示 no module named 'tz' 什么意思?
我已经用 numby 和 pyqt4 没有 matplotlib 的程序测试了 pythinstaller,它工作得很好enter image description here! )
【问题讨论】:
我使用 pyinstaller 生成带有 matplotlib exe 文件的 pythion 程序 exe 生成良好,但使用 exe 时出现错误,提示 no module named 'tz' 什么意思?
我已经用 numby 和 pyqt4 没有 matplotlib 的程序测试了 pythinstaller,它工作得很好enter image description here! )
【问题讨论】:
我在 Cecil Curry 提供的 pyinstaller git hub 上找到了解决方案。 它是: 这是一个已知的问题。不幸的是,python-dateutil 2.5.0 目前在 PyInstaller 方面被破坏了。
在 python-dateutil 发布纠正此问题的新稳定版本之前,请考虑暂时降级到 python-dateutil 2.4.2。对于给您带来的轻微不便,我们深表歉意——不过,感谢您抽出宝贵时间报告此事。
我已经测试过了,它可以工作
【讨论】: