Use `python3 my_script.py` instead of `./my_script.py`. - If you must run it directly: `chmod +x my_script.py` and add `#!/usr/bin/env python3` as the first line.