在使用cx_Freeze使PyQt应用程序可执行后,.exe没有做任何事情

时间:2016-11-30 16:28:38

标签: python user-interface matplotlib pyqt4 cx-freeze

我有很大的GUI应用程序包含很多库,比如PyQT4,matplotlib,pandas等... 我已经使用cx_Freeze使其可执行,一切顺利。 打开.exe后,它什么也没做 请参阅我的setup.py文件。

import sys
from cx_Freeze import setup, Executable

packages = ['pyhdb','paramiko','sshtail','smtplib','pandas','email','xml']
include_files = ["Models","Views", "Controllers","images","graphs","green.png","red.png","files", "resource_rc.py"]
excludes=["tkinter"]


base = 'Win32GUI' if sys.platform=='win32' else None

setup(
   name="DMO App",
   version="1.0",
   description="Dmo App",
   options={"build_exe":{"packages":packages,"include_files":include_files}},

   executables=[Executable("main.py",base=base)]
)

有什么建议是什么问题?

谢谢, 阿尔曼

0 个答案:

没有答案