How to install pip on Ubuntu 16

  1. Upgrade packages to the latest version
    sudo apt-get update && sudo apt-get -y upgrade
    
  2. Install python-pip
    sudo apt-get install python-pip
    
  3. Check version
    pip -V
    

Install pip3

sudo get-apt install python3
sudo apt-get install python3-pip
python3 -m pip -V

Upgrade pip3

sudo -H pip install --upgrade pip

Others

  • Searching a pacakage
    pip search package_name
    
  • Installing a package
    pip install package_name
    
  • uninstalling a package
    pip uninstall package_name
    

Source: https://www.rosehosting.com/blog/how-to-install-pip-on-ubuntu-16-04/

Written on June 14, 2017