2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
The principle of cxfreeze is to package the Python program and its dependent modules, libraries, resource files, etc. into an executable file. During the packaging process, cxfreeze will package the Python interpreter and program code together, and also package the modules, libraries, resource files, etc. that the program depends on. When the program is running, cxfreeze will decompress these files and run the program in the decompressed folder.
pip install cx_Freeze
其实主要就是将executables里换成你的主函数入口
from cx_Freeze import setup, Executable
setup(
name="flooring",
version="1.0",
description="flooring exe",
executables=[Executable("my_windows.py")]
)
python setup.py build