py2exe problem - need wsvc6?

Thomas Heller theller at
Fri Feb 20 08:55:09 CET 2004

> "Aaron" <aaron at> wrote in message
> news:40357A5B.5090701 at
>> You do not need a C compiler to make a standalone application.

MSVC6 is *only* required if you want to build py2exe itself from the
sources.  If you install the binary package, you won't need it.  More

>> In version 0.5 the files changed a bit.
>> First of all can you run your python script on the commandline?
>> I have a hello world app as follows:
>> print "Hello World"
>> from distutils.core import setup
>> import py2exe
>> setup(name='Test',
>>        description="a Test",
>>        version='0.1.0',
>>        console=[''])
>> #build.bat
>> e:\Python23\python.exe py2exe
>> Try to build this app and see if your py2exe is setup correctly.

"Elder" <tim at> writes:

> It just opens a window which immediately closes.

What did you expect ;-) ? The exe is a console program, when you
double-click it in the explorer, it opens a console ("command prompt")
window, prints 'Hello, World', and then the console window closes again
- probably faster then you can recognize the output.

To see what this program does, you should open a command prompt window
yourself, navigate (with 'cd directory') to the directory where your exe
file is, and start it by entering 'pTest.exe'.

You can prevent that the console window in the first case closes
immediately by adding a 'raw_input()' call to the script at the


More information about the Python-list mailing list