[Tutor] running py2exe

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Wed Apr 2 16:13:01 2003


> I made a mistake. The error message looked more like the one you had.
> So, do you mean to put the command python setup.py py2exe in the setup
> program so it looks like:
>
>
> ***************************************
> # setup.py
> from distutils.core import setup
> import py2exe
>
> setup(name="test",
>       scripts=["test.py"],
> )

Hello!


Up to there, 'setup.py' looks ok.  But the command:

    python setup.py py2exe

is not meant to be run in your Python script --- you'll need to take that
out.  Instead, that last command is meant to be used from the Windows
command prompt.

If you're running Win2k, I believe you can get to a prompt by going to the
Start menu, selecting the "Run" command, and type 'cmd' in the box.  From
there, a console window should pop up.  It's at that console window that
you can type 'python setup.py py2exe'.


If you have more questions, please feel free to ask!