install python2 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
sudo python2 get-pip.py
pip --version
Example 2: how to install python 3 on ubuntu 20.04
sudo apt install build-essential libssl-dev libffi-dev python3-dev
Example 3: how to install python 3 on ubuntu 20.04
sudo apt install -y python3-pip
Example 4: how to install python 3 on ubuntu 20.04
sudo apt update
sudo apt -y upgrade
Example 5: how to install python 3 on ubuntu 20.04
python3 -m venv my_env