installing pip3 on ubuntu code example Example 1: ubuntu pip3 sudo apt-get -y install python3-pip Example 2: how to install pip ubuntu python2 pip2 --version