how to upgrade python.exe -m pip install --upgrade pip code example Example: python -m pip install --upgrade pip # That line of shell code updates pip