簡體   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