[Tutor] how to make python program as executable

Alan Gauld alan.gauld at btinternet.com
Wed Jan 30 09:39:59 CET 2008

"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.


Alan G. 

More information about the Tutor mailing list