python -m install --upgrade pip code example
Example 1: pip install --upgrade
# That line of shell code updates library
pip install --upgrade <library_name>
Example 2: python -m pip install --upgrade pip
# That line of shell code updates pip
# That line of shell code updates library
pip install --upgrade <library_name>
# That line of shell code updates pip