使用cx_Freeze转换可执行文件中的python3脚本

时间:2018-03-19 20:12:48

标签: python python-3.x python-3.4 cx-freeze

我最近在python3中创建了这个聊天应用程序,我想在可执行文件中转换我的脚本,我做了一些研究,我发现并选择了cx_Freeze,因为它是多平台的,我现在正在使用Windows 10。我制作了这个脚本来进行转换,但是当我运行它时没有任何反应。如果有人能帮助我,我将非常感谢!!!

import cx_Freeze
import sys


base = None

if sys.platform == 'win32':
    base = "Win32GUI"

executables = [cx_Freeze.Executable("/mis programas/chat/aplicacion1.1.py", base=base, icon="/mis programas/iconos/3.png")]

cx_Freeze.setup(
    name = "PyChaT",
    options = {"build_exe": {"packages":["tkinter"], "include_files":["/mis programas/iconos/3.png"]}},
    version = "1",
    description = "Source of communication",
    executables = executables
    )

0 个答案:

没有答案