cx_Freeze问题,缺少

时间:2019-11-13 19:28:53

标签: python pygame cx-freeze

我认为我所做的一切都很好,但是出现此错误 在第3行     可执行文件= [cx_freeze.Executable(“ main.py”)] NameError:名称“ cx_freeze”未定义

import cx_Freeze

executables = [cx_freeze.Executable("main.py")]

cx_freeze.setup(
    name="zmudnythegame",
    options={"build_exe":{"packages":["pygame"],"included_files":["background.png","background.wav","bullet.png","enemy.png","explosion.wav","laser.wav","player.png"]}},
    executables = executables
)

0 个答案:

没有答案