繁体   English   中英

python py2exe dll加载失败混音器模块不可用

[英]Python py2exe dll load fail mixer module not available

我试图使用py2exe从我的python程序制作一个exe。 问题是,当我尝试运行exe时,它给了我一个错误:

C:\Users\Eduard\Desktop\testordner>test.exe
test.exe:7: RuntimeWarning: use mixer: DLL load failed: Das
angegebene Modul wurde nicht gefunden.
(ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.)
Traceback (most recent call last):
File "test.py", line 7, in <module>
mixer.init()
File "pygame\__init__.pyc", line 70, in __getattr__
NotImplementedError: mixer module not available
(ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.)

这也是我的安装文件:

from distutils.core import setup
import Tkinter as tk
from itertools import cycle
from pygame import mixer
import random
import py2exe

setup(console=[{"script":"test.py"}],options={"py2exe":{"includes":["pygame"]}})

我的猜测是在“ packages”选项中添加“ pygame”而不是“ includes”。

如果以上还不够,我会为“ pygame和py2exe”做一些谷歌搜索

暂无
暂无

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

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