Shebang doesn’t work with python3
Generally, take care of some pitfalls: set the executable flag on the script: chmod u+x test.py try to execute with a preceding dot “./”, so call ./test.py otherwise it might execute some other script from within your PATH also make sure you don’t have windows line endings, this seems to prevent the shebang evaluation, too. There are some suggestions around, e.g. in this answer, on … Read more