P@c_M@n Posted July 30, 2010 Share Posted July 30, 2010 (edited) I have installed py2exe on my Windows Vista laptop. I have tried to compile a python file on my desktop with this script: from distutils.core import setup import py2exe setup(console=[r"C:\Users\Brian\Documents\Desktop\number_one.py"]) I run the file and whenever i do, this is the error that comes up: Traceback (most recent call last): File "C:\Users\Brian\Documents\Desktop\setup.py", line 4, in <module> setup(console=[r"C:\Users\Brian\Documents\Desktop\number_one.py"]) File "C:\Python26\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 So can someone help me out here? Is the script wrong or something? I have googled and searched the py2exe website, but I can't find anything. Edited July 30, 2010 by Ghost_System Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.