cx_Freeze exe file opens for a second then closes

2019-05-31 23:36发布

问题:

Whenever I try to open the .exe file, a black screen opens and flickers for a second then closes. No error shows up at all.

Here's my setup.py file:

import sys
from cx_Freeze import setup, Executable

setup(
    name = "Robot Game",
    version = "1.1",
    executables = [Executable("Robot Game.py", base = "Win32GUI")])