[Tutor] how to make python program as executable

Luke Paireepinart rabidpoobear at gmail.com
Wed Jan 30 10:59:59 CET 2008

Alan Gauld wrote:
> "brindly sujith" <brindly at gmail.com> wrote
>> i am developing a  GUI application in python(tkinter)
>> i want to know how to make the python program as a application ie i 
>> want to
>> make it executable
> If you are on Windows it should be executable already,
> just double click on the main file in Windows Explorer
> and it should run. If not the file associations need setting.
> If you are on a Unix based system you will need to use
> chmod +x to  make the file executable. You will also
> need the shebang line set:
> #! /bin/env python
> or whatever is appropriate on your system.
I think he meant " i want to make the application [into an] executable" 
I.E. he wants an .exe file on Windows.
In this case, you can use py2exe, and there's another alternative I 
can't remember.

More information about the Tutor mailing list