I made test.py
and ran chmod u+x test.py
. It works if I run python test.py
but not ./test.py
. What am I doing wrong?
./test.py: line 1: syntax error near unexpected token `"HelloWorld"'
./test.py: line 1: `print ("HelloWorld")'
I made test.py
and ran chmod u+x test.py
. It works if I run python test.py
but not ./test.py
. What am I doing wrong?
./test.py: line 1: syntax error near unexpected token `"HelloWorld"'
./test.py: line 1: `print ("HelloWorld")'