pip to pip3 ubuntu code example Example 1: how to install pip ubuntu python2 sudo add-apt-repository universe Example 2: how to install pip ubuntu python2 pip2 --version