pip install --upgrade pip version code example
Example 1: how to upgrade pip
python -m pip install --upgrade pip
Example 2: python -m pip install --upgrade pip
# That line of shell code updates pip
python -m pip install --upgrade pip
# That line of shell code updates pip