I am experimenting with different Linux distros in VirtualBox and am currently using Pop!_OS 20.04 LTS.
I checked my python version in the terminal and it was 3.8.2, this version is also the latest in the software repositories. Looking at python.org/downloads we can see that currently, the latest version of python 3.8 is 3.8.5.
After a lot of search around the internet, I came up with these final solutions for upgrading python:
- If a higher version becomes available in the repos: I can manually install it using
sudo apt install python3.8.5and then usingupdate-alternativesto link it topython3(Con: Ubuntu software repos are VERY slow to upgrade to newer versions) - Building from source using
make, which took a lot of time and had the hassle of going through the list of dependencies and installing them. (Con: Time consuming and somewhat complex to new users)
My question comes down to this:
Aren't there any alternative ways of installing python on Linux? e.g. An official repository for Linux set up by python.org where the versions are updated regularly so Linux users don't have to wait months after a new release to upgrade their python.
python-virtualenv, where you can easily maintain different version of Python and switch between them.