Unable to get shebang line working in Ubuntu for python script. I only get a command not found error each time.
test.py
#!/usr/bin/env python
print ('!')
Ran
:which python
/usr/bin/python
Played around with different locations for python in the shebang but no luck including what was provided by which python. Any tips on how to troubleshoot this?
Thanks
\n
newlines. – Dismastchmod +x scriptname.py
) – Dismastfile test.py
say? – Dismastdos2unix <myscript>
to fix the line endings and then try you script again. – Pyrites