It's good practice to use /usr/bin/env python3 in your shebang, instead of hardcoding the path to the python executable. The reason is that different operating systems might install python to different locations. For example, on my distribution (mac OS), python 3 is located in /usr/local/bin/python3.
It's good practice to use /usr/bin/env python3 in your shebang, instead of hardcoding the path to the python executable. The reason is that different operating systems might install python to different locations. For example, on my distribution (mac OS), python 3 is located in /usr/local/bin/python3.
https://askubuntu.com/a/716281