install pip2 on ubuntu 20.04 code example

Example 1: how to install pip in ubuntu

sudo apt install python3-pip

Example 2: ubuntu 20.04 pip2 install

sudo apt update
sudo apt install curl
sudo add-apt-repository universe
sudo apt update
sudo curl https://bootstrap.pypa.io/2.7/get-pip.py --output get-pip.py # Fetch get-pip.py for python 2.7 
sudo python2 get-pip.py
pip --version

Example 3: how to install python pip in ubuntu

#First enter the following command to the terminal
@pip3 --version
# after that
@if it doesnt give a result like pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
# enter the following commands
sudo apt install python3-pip
sudo apt install python3-pip3
#Thats all
#Ranuga D