3 ms·
“recommendation to change the meaning of #!/usr/bin/python from Python 2, to Python 3.” This isn’t exactly true. The recommendation was for a long time that it
by Too 4y ago
“recommendation to change the meaning of #!/usr/bin/python from Python 2, to Python 3.”
This isn’t exactly true. The recommendation was for a long time that it should alias python2, later it changed to be ambiguous and up for distros to decide, which is possibly even worse, but I guess good in the long run once py2 gets completely eliminated. It can be found in https://peps.python.org/pep-0394/ https://peps.python.org/pep-0394/ Only way to be sure is to use more specific shebang or a venv, which is a good idea anyway. Especially when trying to run some really old sw, like in tfa, that is not up to date with other packages.
- bayindirh 4y agoIn current state, Debian does not contain a /usr/bin/python file, and since 2.7 is eliminated from system relatively long time ago, everything is python3. If you really in dire need, you can install "python-is-python3", which just symlinks /usr/bin/python to /usr/bin/python3. However, no package can depend on it in Debian. It's strictly verboten.