I have only used cx_freeze
a few times and was successful using these steps. You were possibly missing something in this. First, create a setup.py
like so:
from cx_Freeze import setup, Executable
import sys
exe = Executable(
script="yourmodule.py",
base="Win32GUI",
)
setup(
name = "desiredname",
version = "1",
description = "example program",
executables = [exe]
)
Before running this, make sure that you have all non-default (built-in) modules and the setup.py
file in the same folder as the yourmodule.py
file. Then from the command line, run python setup.py build
.