By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 1,932 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

Why doesn't py2exe work?

P: 2
I am getting next message trying to create an executable file:
Expand|Select|Wrap|Line Numbers
  1.   File "C:\Python27\lib\distutils\", line 140, in setup
  2.     raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
  3. SystemExit: usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  4.    or: --help [cmd1 cmd2 ...]
  5.    or: --help-commands
  6.    or: cmd --help
  8. error: no commands supplied
What do I do wrong?
Jan 27 '11 #1
Share this Question
Share on Google+
2 Replies

P: 145
Are you just typing ""? If so, it's telling you that you need to add command arguments to it. You can type: cmd --help
for options.
This line tells you the usage for
Expand|Select|Wrap|Line Numbers
  1. usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
and these give you options for the usage. Notice the last line says "no commands supplied:
Expand|Select|Wrap|Line Numbers
  1. #    or: --help [cmd1 cmd2 ...]
  2. #    or: --help-commands
  3. #    or: cmd --help
  4. #  
  5. # error: no commands supplied
Typically is ran from a command line, and usually just needs:

python install
Jan 27 '11 #2

P: 2
Thanks for your answer.
The problem however is solved. I was working with the 64bit program. 32bit was needed (its hard to find).
Jan 31 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.