[Tutor] Py2Exe Problems

Jack Little jacklittlemc at yahoo.com
Thu Jun 6 03:57:04 CEST 2013


I have written a setup.py file to compile a script to a standalone exe. My error is here:
Traceback (most recent call last):
  File "C:\Users\Jack\Desktop\compiler\setup.py", line 4, in <module>
    setup(console=["te.py"])
  File "C:\Python27\lib\distutils\core.py", line 140, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied






My code is here:


from distutils.core import *
import py2exe

setup(console=["te.py"])





Get back to me asap..

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130605/158a2c27/attachment.html>


More information about the Tutor mailing list