How to update pip version on your machine

Run the following command to upgrade the pip version on your machine:

pip install --upgrade pip

Output wi;; be like:

Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (21.3.1)
Collecting pip
  Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 7.5 MB/s            
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.3.1
    Uninstalling pip-21.3.1:
      Successfully uninstalled pip-21.3.1
Successfully installed pip-22.2.2

You have successfully updated pip on your machine.