im trying to create a Windows executable from a python GUI program. im using the following script
from distutils.core import setup import py2exe setup(console=['gui.py'])
he gives the following error
Warning (from warnings module): File "C:\Python27\lib\distutils\dist.py", line 267 warnings.warn(msg) UserWarning: Unknown distribution option: 'console' Traceback (most recent call last): File "E:\my python\py2exe.py", line 3, in <module> import py2exe File "E:\my python\py2exe.py", line 5, in <module> setup(console=['ASUP_finalDone1.py']) File "C:\Python27\lib\distutils\core.py", line 140, in setup raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg SystemExit: usage: py2exe.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: py2exe.py
I canβt understand why itβs necessary to give a command, since this application is based on a graphical interface, but it worked fine for the first time, and then it gives an error above. please, help..........
python windows-7 py2exe
Cold blooded
source share