First step:-
You have to install the necessary packages for python and SSL
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
Second step;-
Next, Download and Unzip the "Python-3.6.8.tar.xz" from the link
Make sure you unzip the downloaded file in your home directory
Third step:-
Open the terminal and run "$ ./configure", in that respective directory
Fourth step:-
Then, Build & install
$ make && sudo make install
Last step:-
Here, you can install your packages with:-
$ pip3 install package_name
Note:- These commands are not executed and tested in ubuntu 20.04 LTS
Want to be a Python expert? Come and join this Python for Data Science.
To know more about these topics, you can also look at the following video tutorial :