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

Unable to create executable - error: invalid command 'py2exe'

kaarthikeyapreyan
100+
P: 107
Python version 2.7.1
py2exe installed successfully
version - py2exe-0.6.9.win32-py2.7
py2exe in python path

setup.py
Expand|Select|Wrap|Line Numbers
  1.  
  2. from distutils.core import setup
  3. import py2exe
  4.  
  5. setup(console=['helloworld.py'])
  6.  
Expand|Select|Wrap|Line Numbers
  1. C:\Python27\Lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'console'
  2.   warnings.warn(msg)
  3. usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  4.    or: setup.py --help [cmd1 cmd2 ...]
  5.    or: setup.py --help-commands
  6.    or: setup.py cmd --help
  7.  
  8. error: invalid command 'py2exe'
  9.  
Jun 1 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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