繁体   English   中英

pygame.mixer模块丢失了吗?

[英]Pygame.mixer module missing?

我正在尝试为朋友制作一个小程序,它需要运行一个.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依赖于libSDL_mixer。 确保它可用。

这可能会有所帮助:py2exe示例项目: http ://www.pygame.org/wiki/Pygame2exe

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM