What is the problem? I tried \"python -m pip install -U pip\" and \"python -m pip install --upgrade pip\" both with the same error (and \"<
My answer is a variation of assmmahmud's but for me I had to use the option --user. I'm on windows so from CMD.exe;
py -m pip install --user --force-reinstall -U
If I don't use the --user option then the error occurs.