Anjuta IDE - Really Simple Python Question

OclbrialOclbrial Member Posts: 1 ■■□□□□□□□□
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:

Code:
    #!/usr/bin/env python
    print "Hello World!"
All I want to do is run this in the terminal. I go to Run > Execute but I get the following error message:

Program 'home/joe/Programming/Python//hello.py' does not have execution permission
How do I get this really simple program to run?

Thanks

Comments

  • DatabaseHeadDatabaseHead Teradata Assc 16, Querying Microsoft SQL Server 2012/2014, CSM Member Posts: 2,643 ■■■■■■■■■□
    Can you open that IDE with elevated rights?  Run as Administrator?
  • SteveLavoieSteveLavoie Member Posts: 958 ■■■■■■■■□□
    edited June 2019
    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


  • yoba222yoba222 Senior Member Member Posts: 1,225 ■■■■■■■■□□
    Why not learn Python 3 instead of Python 2?
    A+, Network+, CCNA, LFCS,
    Security+, eJPT, CySA+, PenTest+,
    Cisco CyberOps, GCIH, VHL,
    In progress: OSCP
Sign In or Register to comment.