Command ‘pip’ not found on Ubuntu 18.04

While trying to install django I got following error


$ pip install Django==3.0.1

Command 'pip' not found, but can be installed with:

sudo apt install python-pip

Now before you install pip using above command check your python version

If you have python 2.X, use following command

$sudo apt update
$sudo apt install python-pip

If you have python 3.X use following command

$sudo apt update
$sudo apt install python3-pip

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.