how to upgrade python to the latest version on linux using terminal code example Example: update python ubuntu $ sudo apt update -y $ sudo apt install python3.7