Python Pygame.mixer模块丢失?

Python Pygame.mixer模块丢失?,python,python-2.7,pygame,py2exe,Python,Python 2.7,Pygame,Py2exe,我正在尝试为一个朋友做一个小程序,它需要运行一个.wav文件 当我在python中运行它时,它工作得很好,但是当我在py2exe中编译它时,它给了我--> phone.exe:23:RuntimeWarning:use mixer:DLL加载失败:找不到指定的模块。 (导入错误:DLL加载失败:找不到指定的模块。) 回溯(最近一次呼叫最后一次): 文件“phone.py”,第23行,在 文件“pygame\\ uuuuu init\ uuuuuu.pyc”,第70行,在\uuuu getattr

我正在尝试为一个朋友做一个小程序,它需要运行一个.wav文件 当我在python中运行它时,它工作得很好,但是当我在py2exe中编译它时,它给了我-->

phone.exe:23:RuntimeWarning:use mixer:DLL加载失败:找不到指定的模块。
(导入错误:DLL加载失败:找不到指定的模块。)
回溯(最近一次呼叫最后一次):
文件“phone.py”,第23行,在
文件“pygame\\ uuuuu init\ uuuuuu.pyc”,第70行,在\uuuu getattr中__
未实现错误:混音器模块不可用

pygame.mixer
依赖于libSDL\u mixer。确保它可用。

这可能会有所帮助:例如py2exe项目:

在Debian上,您可以使用
apt get install libsdl-mixer1.2
安装libsdl\u混合器。
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