need help converting .py to an exe for windows

Derek S, Smigelski dereks at
Mon Jul 30 11:00:40 EDT 2001

I have tried both py2exe and installer.  I currently have py2exe installed
now.  Here's the scoop.  I have python 2.1 installed to c:\python21, and
distutils installed to c:\python21\distutils.  I have a directory for my
scripts that I wish to be converted into exes located at

When I attempt to follow the instructions from Heller's py2exe site here's
what I get:

C:\Python21\DSSCRI~1>python py2exe --help
  File "", line 2
    from distutils.core import setup
SyntaxError: invalid syntax


The file looks like this:

         from distutils.core import setup
         import py2exe



Any Ideas?

Derek Smigelski
DerekS at

More information about the Python-list mailing list