install python3 pip ubuntu 20.04 code example
Example 1: 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 2: install python3.7 ubuntu 20.04
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7