-1

Whenever I run pip install opencv-python, I get

Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\Users\redactedusername\AppData\Local\Temp\pip-unpack-wrckbxoo\opencv_python-4.0.0.21-cp36-cp36m-win_amd64.whl': Check the permissions.

I've tried pip install -user opencv-python and pip install opencv-python --user but no luck. Any ideas? And yes, I've tried using Administrator Command Prompt

Questwalker
  • 111
  • 1
  • 5
  • 2
    https://stackoverflow.com/a/32199615/5099964, it is a good idea to google the error code, these kind of questions are usually answered – penta Feb 22 '19 at 04:42
  • `pip install opencv-python --user` I don't know where you got `pip -user install packageName` but that doesn't work – anand_v.singh Feb 22 '19 at 04:53
  • Possible duplicate of [Python - PIP install trouble shooting - PermissionError: \[WinError 5\] Access is denied](https://stackoverflow.com/questions/32167418/python-pip-install-trouble-shooting-permissionerror-winerror-5-access-is) – phd Feb 22 '19 at 11:15
  • Tried it all, researched it all. Unfortunately, You are of no help either. – Questwalker Feb 22 '19 at 17:47
  • https://stackoverflow.com/questions/26091530/permissionerror-winerror-5-access-is-denied-python-using-moviepy-to-write-gif check this one – Lex Marchenko Feb 22 '19 at 17:48
  • use a virtualenv – Corey Goldberg Feb 22 '19 at 17:53
  • Does this answer your question? [pip install access denied on Windows](https://stackoverflow.com/questions/31172719/pip-install-access-denied-on-windows) – Gonçalo Peres Jan 10 '22 at 11:56

2 Answers2

0

Try to right click on "Command Prompt" and then "Run as administrator" that should do the trick

Mike Olszak
  • 373
  • 6
  • 12
0

I've manually downloaded the wheel file from this website

And installed it through command prompt using

pip install <filename>

Questwalker
  • 111
  • 1
  • 5