3 ms·
I wonder if we'll ever get /usr/bin/python back. Or is it going to be like browser user-agent strings where we call it "python3" forever and forget why we can't
by globular-toast 7y ago
I wonder if we'll ever get /usr/bin/python back. Or is it going to be like browser user-agent strings where we call it "python3" forever and forget why we can't just call it python?
- amelius 7y agoI guess it will break too many things, some of which may be out of control of Ubuntu.
- markrian 7y agoYou can install the [python-is-python3][0] package on 20.04, which symlinks /usr/bin/python to python3. [0]: https://packages.ubuntu.com/focal/python-is-python3 https://packages.ubuntu.com/focal/python-is-python3
- globular-toast 7y agoI saw that, but it's not the default setting. You can't just write a python script and expect it to work on Ubuntu without putting python3 in the shebang.
- py3canbelinked 7y agoapt-get install python-is-python3
- e12e 7y agoI think the python team decided to do it that way, in combination with various distro?
- Johnnynator 7y agoThe python symlink is allowed to be python2 or python3. E.g. Archlinux has it point to py3, Void Linux allows the symlink to be configured by the user. See https://www.python.org/dev/peps/pep-0394/ https://www.python.org/dev/peps/pep-0394/ for details.