Just add python -m before executing the command
python -m pip install --upgrade pip This command is used to upgrade pip