[Tutor] convert to exe?
Gonçalo Rodrigues
op73418 at mail.telepac.pt
Tue Nov 25 07:49:43 EST 2003
On Mon, 24 Nov 2003 16:08:27 -0800 (PST), you wrote:
>hey,
>
>well this is sorta a stupid question, but i just started to program, so i dont know much. im learning python from an online source, but theres something i dont get. the interpreter works fine for all program testing purposes, but what after that? how do i convert the .py file to an executable .exe application that other people will be able to use? and whoever is going to explain this to me, do it in simple terms, im not exactly what ud call the ultimate computer genius.
>thanx,
>
>Udz
>
There are no compilers for the Python language (yet). What happens is
that the code (the code in your source file .py) is translated to an
intermediate language, and then that translation is run by another
program, which you can view as simulating a computer - heck, it's even
called a Virtual Machine (VM). Other languages like Perl or Java do
the same.
In practice, what this means is that to run your .py file in a
computer, it must have the Python interpreter installed. There are
tools, however, that can *bundle and wrap* your source file together
with the interpreter and any extra libraries it needs into an
executable binary. Look up py2exe
http://py2exe.sourceforge.net/
With my best regards,
G. Rodrigues
More information about the Tutor
mailing list