Anjuta IDE - Really Simple Python Question
I'm new to Linux, Python and the Anjuta IDE.
I have created a new file called hello.py. This is the contents of that file:
All I want to do is run this in the terminal. I go to Run > Execute but I get the following error message:
How do I get this really simple program to run?
Thanks
I have created a new file called hello.py. This is the contents of that file:
Code:
#!/usr/bin/env python print "Hello World!"
Program 'home/joe/Programming/Python//hello.py' does not have execution permission
Thanks
Comments
-
DatabaseHead Member Posts: 2,754 ■■■■■■■■■■Can you open that IDE with elevated rights? Run as Administrator?
-
SteveLavoie Member Posts: 1,133 ■■■■■■■■■□I am guessing you are on Linux...
In a bash command shell, either give permission to execute:
chmod a+x hello.py
or try to run it with
python hello.py
-
yoba222 Member Posts: 1,237 ■■■■■■■■□□Why not learn Python 3 instead of Python 2?A+, Network+, CCNA, LFCS,
Security+, eJPT, CySA+, PenTest+,
Cisco CyberOps, GCIH, VHL,
In progress: OSCP