gpt4 book ai didi

python - Pygame.mixer 模块丢失?

转载 作者:行者123 更新时间:2023-11-28 22:02:46 25 4
gpt4 key购买 nike

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

关于python - Pygame.mixer 模块丢失?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10761581/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com