Re:Ubuntu 20.04 LTS (Focal Fossa)
by globular-toast on Thursday April 23, 2020 @05:00AM
(#22954072)
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?
[ Parent
| on HN ]
You can install the [python-is-python3][0] package on 20.04, which symlinks /usr/bin/python to python3.
Re:Ubuntu 20.04 LTS (Focal Fossa)
by globular-toast on Thursday April 23, 2020 @08:00AM
(#22955019)
I 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.
I think the python team decided to do it that way, in combination with various distro?
Re:Ubuntu 20.04 LTS (Focal Fossa)
by Johnnynator on Thursday April 23, 2020 @11:29AM
(#22957070)
The 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/ for details.
I guess it will break too many things, some of which may be out of control of Ubuntu.
Re:Ubuntu 20.04 LTS (Focal Fossa)
by py3canbelinked on Thursday April 23, 2020 @07:51AM
(#22954969)
apt-get install python-is-python3