1

My python is 3.7.4. I just want to upgrade pip, then I get this error

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\SHENSH~1\\AppData\\Local\\Temp\\pip-uninstall-3g065r3k\\pip.exe'
Consider using the `--user` option or check the permissions.
  • 3
    Does this answer your question? [pip install access denied on Windows](https://stackoverflow.com/questions/31172719/pip-install-access-denied-on-windows) – Emily Dec 13 '19 at 17:03

1 Answers1

1

In case of windows, in cmd try to run pip install using python executable

e.g.

python -m pip install package

this should work, at least it worked for me for other package installation.

maestro.inc
  • 796
  • 1
  • 6
  • 13
  • Applying your answer, using the python executable directly (along with administrative mode) did the trick when a normal pip install was failing. Thanks for the suggestion. – Austin Heller Oct 21 '22 at 14:50