尝试运行py2exe应用程序

时间:2016-05-17 01:17:51

标签: python-2.7 pandas py2exe python-dateutil zoneinfo

我有一个程序,我试图使用py2exe打包为* .exe。我坚持以下错误:

C:\Users\ME\Desktop\my_gui\dist>my_gui.exe
[Error 3] The system cannot find the path specified: 'C:\\Users\\ME\\Deskt
op\\my_gui\\dist\\library.zip\\dateutil\\zoneinfo/*.*'
Traceback (most recent call last):
  File "my_gui.py", line 29, in <module>
  File "run_sim_gui.pyc", line 3, in <module>
  File "tfm.pyc", line 2, in <module>
  File "init_cond.pyc", line 3, in <module>
  File "policy.pyc", line 1, in <module>
  File "pandas\__init__.pyc", line 7, in <module>
  File "pandas\tslib.pyc", line 12, in <module>
  File "pandas\tslib.pyc", line 10, in __load
  File "pandas\tslib.pyx", line 44, in init pandas.tslib (pandas\tslib.c:79879)
  File "dateutil\zoneinfo\__init__.pyc", line 35, in <module>
  File "dateutil\zoneinfo\__init__.pyc", line 28, in getzoneinfofile
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\Users\\ME\\Desktop\\my_gui\\dist\\library.zip\\dateutil\\zoneinfo/*.*'

我不太明白这个错误消息的含义,因为我可以正常找到该文件夹​​: zoneinfo Folder

将dateutil文件夹移出library.zip文件夹并将其放在dist文件夹中(如cx_freeze的建议here)不起作用并产生以下错误消息:

C:\Users\ME\Desktop\my_gui\dist>my_gui.exe
Traceback (most recent call last):
  File "my_gui.py", line 25, in <module>
  File "analysis_gui.pyc", line 3, in <module>
  File "matplotlib\__init__.pyc", line 115, in <module>
ImportError: matplotlib requires dateutil

我不知道下一步该尝试什么。任何帮助表示赞赏。

0 个答案:

没有答案