Deploy MNIST model to production - pip install -r requirements.txt COMMAND IS FAILING

Shows error:
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-WieLtC/scipy/
You are using pip version 19.1.1, however version 21.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.!

Can someone please guide me on how to solve this issue? “pip install --upgrade pip” didn’t work, says permission denied…

Thanks in advance.

Could you please share a screenshot of the commands you have used? Also, you do not need to upgrade pip.