pip upgrade ptyhon code example
Example 1: how to update pip python
python -m pip install --upgrade pip
Example 2: how to install pip on linux
apt install python3-pip # python 3
python -m pip install --upgrade pip
apt install python3-pip # python 3