Directly Executable Files in Python

Chris Rebert clp2 at rebertia.com
Mon Mar 28 23:55:05 EDT 2011


On Mon, Mar 28, 2011 at 8:37 PM, Jordan Meyer <jordanmeyer1991 at gmail.com> wrote:
> Is it possible to make a directly executable (such as .exe on Windows) file from scripts written in Python? So as to prevent the end-user from having to download an interpreter to run the program.

Yes. py2exe is a tool which generates such Windows executables:
http://www.py2exe.org/
(It's the first Google hit for "python executable windows", FYI;
Google is your friend!)

Most *nix (and Linux distros in particular) come with Python
preinstalled and/or have savvy users, so the matter of obtaining an
interpreter is almost a non-issue on those platforms.
For Mac OS X, there's py2app.

Cheers,
Chris



More information about the Python-list mailing list