2012-05-25 54 views
1

我试图做一个小节目的朋友,它需要运行一个.wav文件 它工作得很好,当我在python运行它,但是当我在py2exe编译它,它给了我这个 - >Pygame.mixer模块缺失?

phone.exe:23: RuntimeWarning: use mixer: DLL load failed: The specified module could not be found. 
(ImportError: DLL load failed: The specified module could not be found.) 
Traceback (most recent call last): 
    File "phone.py", line 23, in <module> 
    File "pygame\__init__.pyc", line 70, in __getattr__ 
NotImplementedError: mixer module not available 

回答

5

pygame.mixer依赖于libSDL_mixer。确保它可用。

+0

在Debian,你可以使用'apt-get的安装libsdl-mixer1.2'安装libSDL_mixer。 – Kayla