upgrade python 3.7.3 to 3.7.10 code example Example: upgrade python to 3.8 $ sudo apt update -y $ sudo apt install python3.8