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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaarthikeyapreyan
    New Member
    • Apr 2007
    • 106

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

    Python version 2.7.1
    py2exe installed successfully
    version - py2exe-0.6.9.win32-py2.7
    py2exe in python path

    setup.py
    Code:
     
    from distutils.core import setup
    import py2exe
    
    setup(console=['helloworld.py'])
    Code:
    C:\Python27\Lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'console'
      warnings.warn(msg)
    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: invalid command 'py2exe'
Working...