ERROR Could not install packages opencv-contrib-python due to an EnvironmentError WinError 5 Access is denied

0 votes

Hi Guys,

I am trying to install opencv-contrib-python, but it shows me the below error.

C:\Users\Desktop\mlops-ws\Class note>pip install opencv-contrib-python
Collecting opencv-contrib-python
Using cached opencv_contrib_python-4.2.0.34-cp37-cp37m-win_amd64.whl (39.5 MB)
Requirement already satisfied: numpy>=1.14.5 in c:\users\anaconda3\lib\site-packages (from opencv-contrib-python) (1.18.1)
Installing collected packages: opencv-contrib-python
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\anaconda3\\Lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

Apr 20, 2020 in Machine Learning by akhtar
• 38,230 points
8,991 views

1 answer to this question.

+1 vote

Hi@akhtar,

I think you are trying to install from command line. But some packages will not allow you to install without user access.  To avoid this you can use the command.

$ pip install --user opencv-contrib-python

Hope this will help you.

answered Apr 20, 2020 by MD
• 95,440 points
thanks, it is helpful

Related Questions In Machine Learning

0 votes
1 answer

ERROR: PyAudio-0.2.11-cp39-cp39-win32.whl is not a supported wheel on this platform.

Hi@akhtar, You should download the version that is ...READ MORE

answered Sep 7, 2020 in Machine Learning by MD
• 95,440 points
4,390 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,007 views
0 votes
1 answer
0 votes
1 answer

OpenCV Error: Assertion failed (size.width>0 && size.height>0)

Hi@akhtar, You are getting this error, because your ...READ MORE

answered Apr 20, 2020 in Machine Learning by MD
• 95,440 points
13,222 views
+1 vote
1 answer

ValueError: could not convert string to float in Machine learning.

Hi@akhtar, You are trying to use constant variable ...READ MORE

answered Apr 14, 2020 in Machine Learning by MD
• 95,440 points
25,985 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP