Please tell me how to execute python file in Ubuntu by double clicking on file.
Jason
jasonhihn at gmail.com
Tue Dec 5 12:09:24 EST 2017
On Monday, December 4, 2017 at 4:49:11 AM UTC-5, dhananjays... at gmail.com wrote:
> Respected Sir/Mam,
> I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am double click in python program (Dhananjay.py),it is opening in Text Editor by Default in Ubuntu.I want to run this program when i double click on it as any *.Exe file executes as in Window.
> Sir please help me.
Make the first line oh the file:
#!/usr/bin/env python
Then chmod it with executable permissions:
chmod +x Dhananjay.py
Then you can double-click to run it.
More information about the Python-list
mailing list