1sudo apt update
2sudo apt install software-properties-common
3sudo add-apt-repository ppa:deadsnakes/ppa
4sudo apt update
5sudo apt install python3.8
1download package file from source
2apt-get update
3cd <go downloaded directory>
4tar -xvf <package file name>
5cd <goto extracted folder>
6./configure
7make
8make install
9# check python version you installed
10python3 -V
11