$ pip install cx-Freeze
$ python setup.py install
python
from cx_Freeze import setup, Executable
setup(
name="MyProgram",
version="1.0",
description="My Python Program",
executables=[Executable("my_script.py")],
options={
"build_exe": {
"packages": ["numpy"],
"include_files": ["data.txt"]
}
}
)
$ python setup.py build