Ubuntu 20.04 has Python 3.8.2 as the default version. Python 2.7 has been moved to universe and is not included by default in any new installs. Official Release Notes about Python
Answer from Tylore on askubuntu.comUbuntu 20.04 has Python 3.8.2 as the default version. Python 2.7 has been moved to universe and is not included by default in any new installs. Official Release Notes about Python
If you want to find the default Python 3 version of any Ubuntu release, you can run the command
rmadison python3
python3 | 3.2.3-0ubuntu1 | precise | all
python3 | 3.2.3-0ubuntu1.2 | precise-updates | amd64, armel, armhf, i386, powerpc
python3 | 3.4.0-0ubuntu2 | trusty | amd64, arm64, armhf, i386, powerpc, ppc64el
python3 | 3.5.1-3 | xenial | amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
python3 | 3.6.5-3 | bionic | amd64, arm64, armhf, i386, ppc64el, s390x
python3 | 3.6.7-1~18.04 | bionic-updates | amd64, arm64, armhf, i386, ppc64el, s390x
python3 | 3.8.2-0ubuntu2 | focal | amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
python3 | 3.8.6-0ubuntu1 | groovy | amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
Alternatively, check the package
https://packages.ubuntu.com/search?keywords=python3&searchon=names&exact=1&suite=all§ion=all
For groovy (Ubuntu 20.10), it's Python 3.8.6:

As you discovered, the system does rely on the system version of Python being as it expects. If you really want a system with Python 3.6, your best bet is to find a (ideally, still supported) release using Python 3.6: in your case, Ubuntu 18.04.
If you want to provide Python 3.6 for programs running on your AMI, you could look into using virtual environments instead of replacing the system Python. pyenv is a good place to start.
Administer the environment of any machine on the cloud as you would that of a physical machine near you. If you work with Ubuntu 20.x and your default Python installation on it is 3.8, but you require Python v3.6, install a virtual environment as needed. You can do that with pyenv. What you are doing at the moment is breaking your default Python installation in slow motion with all the adverse effect this will have on countless packages on that machine (cloud based or not).
I add a tutorial I wrote on the virtualization of Python environments, in case of interest (in particular in pyenv).
ubuntu 20.04 comes with python 3.8 .Is it possible to change default python version to 3.6.15 for a project? - Stack Overflow
Ubuntu 20.04 - Python version problems
How to properly migrate python on LTS upgrade 20.04 to 22.04
I encountered an issue with Python 3 upgrading to 20.04 using do-release-upgrade. Here’s an article I wrote with a fix/workaround.
Thanks for sharing. I’m running 18.04 LTS and will wait until the July release of 20.04 LTS.
I’m hoping I don’t have this issue, but if I do I will sing your praises for posting this.
More on reddit.comVideos
Hi, it's been a few years since I used linux, to be honest it must have been 20-25 years ago.
And now Im interested in to playing with Oracle Cloud and have installed Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-1037-oracle x86_64)
And know I want to try Algo,
I have read some guides and watch YouTube and every one is like this,
https://pastebin.com/Vqm4ijRF
But I facing some problems,
First I had problem with ansible==9.1.0 that is in the reguirments.txt
What I was think is that doesn't works with python 3.8
then I tried to install python 3.10, bur can get it to work
When I run:
python3 -m virtualenv --python="$(command -v python3)" .env &&
source .env/bin/activate &&
python3 -m pip install -U pip virtualenv &&
python3 -m pip install -r requirements.txt
I get this error:
RuntimeError: failed to find interpreter for Builtin discover of python_spec="alias python3='/usr/bin/python3.10'"
I had some other error earlier and have changed this:
In .bashrc I have added this line:
alias python3='/usr/bin/python3.10'
Changed the links to:
sudo ln -sf /usr/bin/python3.10 /usr/bin/python3
sudo ln -sf /usr/bin/python3.10 /usr/bin/python
So what do I do wrong here, can some one give me some tip?
And is´t bad to change the links to python 3.10, when system runs 3.8?
Dear community,
I recently performed a LTS upgrade from 20.04.4 to 22.04.2, but I have noticed that many if not all my applications installed in python 3.8 (default on 20.04) were not ported/upgraded to 3.10 (default on 22.04). Python 3.8 got simply erased, although both /home/me/.local/lib/python3.8/site-packages/ and /usr/local/lib/python3.8/dist-packages/are still present. I have asked around and figured out that I most likely should:
install python 3.8 along with 3.10;
mange it via
update-alternatives;upgrade all the missing apps/modules to 3.10;
erase what is left on 3.8.
Nevertheless, I could not find a standard procedure to deal with this issue, and I am not confident enough that the former solution is valid (for sure is highly time consume and prone to errors). Please let me know how it is usually tacked a LTS upgrade for python.