By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 2,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

Python Script Click to run

P: 1
Well, I know there are many querries on this topic and I tried the suggestions posted but still it does not works for me so I am starting a thread here. I also tried on the Python forums but some of them suggest asking Ubuntu community and vise-a-versa !

I am learning Python programming and make some simple games but I wish if I can run those .py files just by clicking (or double clicking) on its icon on the desktop.
I have added #!/usr/bin/python in my script and made it executable from the properties dialogue box but still when I click on it I get the "Run in Terminal, Display, Cancel, Run" dialogue box.

When I use the "Run in terminal" or "Run" button, nothing happens. When I type in terminal, it says command not found, even if I can see the file there and the terminal path is correct. If i use python instead of that then it works fine.

But always working through the terminal makes it less enjoyable, esp if it is a game. Just for info, I use PyGame graphics libraries for the games in Python.

Can any one advise.
Mar 5 '19 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.