You need to add the first line to the script:
Or any interpreter you want to use. If not, the shell (possibly bash) will think that it is a shell script and a throttle.
If you want to get the python interpreter from the path, do this instead:
For more information, contact shebang .
source share