instal python pip ubuntu code example Example 1: install pip in ubuntu sudo apt install python3-pip Example 2: how to install pip ubuntu python2 pip2 --version