python pip install in ubuntu code example Example 1: how to install pip ubuntu python2 sudo python2 get-pip.py Example 2: install pip ubuntu pip3 --version