【发布时间】:2014-09-07 18:44:40
【问题描述】:
在我编译并执行程序后,首先一切正常。但是当我开始在 pygame 中使用音频(.wav)时,程序给了我一个错误:
C:\Users\Eduard\Desktop\test\test.exe:71
7: RuntimeWarning: use mixer: DLL load failed: Das angegebene Modul wurde nicht
gefunden.
(ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.)
Exception in Tkinter callback
Traceback (most recent call last):
File "Tkinter.pyc", line 1470, in __call__
File "test.py", line 788, in ok
File "test.py", line 717, in do_g
File "pygame\__init__.pyc", line 70, in __getattr__
NotImplementedError: mixer module not available
(ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.)
在我的程序中,我使用了来自 itertools 的模块 Tkinter、random、pygame 和 cycle。我没有在设置文件中提到它们,但我不知道这是否需要,所以这里也是设置文件:
from distutils.core import setup
import py2exe
setup(console=[{"script":"test.py"}],options={"py2exe":{"includes":["pygame"]}})
【问题讨论】:
标签: python module installation py2exe