[英]Pygame.mixer module missing?
I am trying to make a small program for a friend and it needs to run a .wav file it works fine when i run it in python but when i compile it in py2exe it gives me this --> 我正在尝试为朋友制作一个小程序,它需要运行一个.wav文件,当我在python中运行它时,它工作正常,但是当我在py2exe中对其进行编译时,它给了我->
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
pygame.mixer
is dependent on libSDL_mixer. pygame.mixer
依赖于libSDL_mixer。 Make sure that it is available. 确保它可用。
这可能会有所帮助:py2exe示例项目: http ://www.pygame.org/wiki/Pygame2exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.