If you want to install pip (for python2) or pip3 (for python3), you need to run the following commands on Debian/Ubuntu system.
1. Update the package index.
sudo apt update
2. Install pip or pip3.
for pip
sudo apt install python-pip
for pip3
sudo apt install python3-pip