1

我有一个程序,我正在尝试使用 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/*.*'

我不太明白此错误消息的含义,因为我可以很好地找到该文件夹​​: 区域信息文件夹

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

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

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

4

0 回答 0