CxFreeze打包python的exe

CxFreeze打包python的exe

使用cxfreeze打包setup.py配置如下

from cx_Freeze import setup, Executable
import sys
base = 'WIN32GUI' if sys.platform == "win32" else None


executables = [Executable("CopyTrans.py", base=base,icon = "logo.ico")]

packages = []
include_files=['logo.png']
options = {
    'build_exe': {
        'packages':packages,
        'include_files': include_files
    },

}

setup(
    name = "CopyTrans",
    options = options,
    version = "1.0",
    description = 'CopyTranslater',
    executables = executables
)



上一篇:Anaconda与python的兼容


下一篇:python环境离线安装方法