Listed below is a list of recent distributions for Debian, Ubuntu, and Red Hat Enterprise Linux and the corresponding Python version that ships with each version.
I created this because while Python 3.10 introduced some awesome features, most distros do not ship with 3.10 and as such cannot make use of them.
At the time of this publishing, using Python 3.6 will ensure full compatibility with currently supported distributions, with Python 3.9 being safe for all latest-release distros.
| Distro | Codename | V# | Release | EOL | Python | |-----------|----------|------:|------------|------------|--------| | Debian | Lenny | 5 | 2009-02-14 | 2012-02-06 | 2.5 | | Debian | Squeeze | 6 | 2011-02-06 | 2016-02-29 | 3.1 | | Debian | Wheezy | 7 | 2013-05-04 | 2018-05-31 | 3.2 | | Debian | Jessie | 8 | 2015-04-25 | 2020-06-30 | 3.4 | | Debian | Stretch | 9 | 2017-06-17 | 2022-07-01 | 3.5 | | Debian | Buster | 10 | 2019-07-06 | 2024-06-30 | 3.7 | | Debian | Bullseye | 11 | 2021-08-14 | N/A | 3.9 | | Debian | Bookworm | 12 | 2023-06-10 | N/A | 3.11 | | Debian | Trixie | 13 | N/A | N/A | N/A | | Debian | Forky | 14 | N/A | N/A | N/A | | Ubuntu | Bionic | 18.04 | 2018-04-26 | 2023-06-01 | 3.6 | | Ubuntu | Focal | 20.04 | 2020-04-23 | 2025-04-01 | 3.8 | | Ubuntu | Jammy | 22.04 | 2022-04-21 | 2027-04-01 | 3.10 | | Ubuntu | Kinetic | 22.10 | 2022-10-20 | 2023-07-01 | 3.10 | | Ubuntu | Lunar | 23.04 | 2023-04-20 | 2024-01-01 | 3.11 | | Ubuntu | Mantic | 23.10 | N/A | N/A | 3.11 | | RHEL | Maipo | 7.x | 2014-06-10 | 2024-07-01 | 3.6 | | RHEL | Ootpa | 8.x | 2019-05-07 | 2029 | 3.6 | | RHEL | Plow | 9.x | 2022-05-17 | 2032 | 3.9 | | FreeBSD | | 12.4 | 2022-12-05 | | | | FreeBSD | | 13.1 | 2022-05-16 | 2023-07-31 | 3.9 | | FreeBSD | | 13.2 | 2023-04-11 | | | | FreeBSD | | 14.0 | 2023-10-23 | | |