install python 2 and 3 code example Example: how to install python 2 $ sudo apt install python2 OR $ sudo apt install python-minimal #is working