from cx_Freeze import setup, Executable script_path = "main.py" build_exe_options = { "includes": [], "excludes": ['tkinter'], "packages": [], 'include_files': [], } setup( name="demo", version="1.0.1", description="demo desc", options={ "build_exe": build_exe_options }, executables=[Executable(script_path, base="Win32GUI")] )