upgrade python 2.7 to 2.8 linux code example Example: update python ubuntu $ sudo apt update -y $ sudo apt install python3.7