Please use python -m pip install --upgrade pip instead. More recent versions of pip has improved the error message here to provide better instructions.
Here is what the above code is Doing:
1. It’s importing the sys module, which is a built-in module that comes with Python.
2. It’s calling the sys.exit() function, which terminates the program.
3. It’s passing the exit() function a string argument that will be displayed when the program terminates.