In this article, we will upgrade to the newest python version and configure it as the default version of python. Here we use “Upgrade python 3.6 to 3.8” as an example.

Step-by-step method

Start with checking the currently installed version of Python on your system.

$ python3 -V

Python 3.6.9
$ sudo apt-get update