sudo pip install --upgrade pip code example
Example 1: how to update pip python
python -m pip install --upgrade pip
Example 2: install pip3
sudo apt install python3-pip
python -m pip install --upgrade pip
sudo apt install python3-pip