need help converting .py to an exe for windows
Derek S, Smigelski
dereks at mip.com
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
c:\python21\dsscripts
When I attempt to follow the instructions from Heller's py2exe site here's
what I get:
C:\Python21\DSSCRI~1>python setup.py py2exe --help
File "setup.py", line 2
from distutils.core import setup
^
SyntaxError: invalid syntax
C:\Python21\DSSCRI~1>
The setup.py file looks like this:
# setup.py
from distutils.core import setup
import py2exe
setup(name="txlotto",
scripts=["txlotto.py"],
)
C:\Python21\DSSCRI~1>
Any Ideas?
Thanks,
Derek Smigelski
DerekS at mip.com
More information about the Python-list
mailing list