3 ms·
most Linux distros still have Python 2 as the default though, right?
by framecowbird 6y ago
most Linux distros still have Python 2 as the default though, right?
- lbhdc 6y agoFedora only includes py3 by default in workstation 32.
- loeg 6y agoNot most, no.
- marcuskaz 6y agoNo, Ubuntu 18.04 shipped with Python3 as the default.
- 3np 6y agoNot true. Vanilla 18.04 LTS ships with no Python installed by default and the main repos `python` package is 2.7. Same for Debian 10. Ubuntu 20.04 switched the `python` package to Python3. Even conservative CentOS (where Python is a base dependency for the system, as opposed to the above) is on Python3 as of now though. As far as I am aware, Debian 10 buster is the last mainstream LTS distro to default to python2. Should change next year with Debian 11.
- dharmab 6y agoOnly server/LTS versions which need Python 2 for backwards compatibility.
- ATsch 6y agoThat's just a measure for backwards compatibility, so python2-only scripts don't cause cryptic errors when they have a `python` shebang. Many distros ship without python2, but will probably still link `python -> python2` for the near future.
- abiogenesis 6y agoCentOS 8 and the latest Fedora doesn't even come with Python 2 installed.
- 3np 6y agoAFAIK the remaining notable one is Debian. Ubuntu LTS moved to 3 with 20.04.