0
votes

I am trying to import cv2 from the python modules in site packages.

I've seen other solutions where you add the module into the site packages directory for python, did pip install and was notified that it installed correctly. I also did a reinstall of the module and its opencv-contrib-python.

When installing opencv-python and attempting to import cv2, I also recieved an error message that there was recursions in the ini file for open cv.

3

3 Answers

1
votes

If you're using python3, you'll need to do

pip3 install opencv-contrib-python
0
votes

hi sir try doing this:

pip install opencv-python

instead of this:

pip install opencv-contrib-python

hope this helps :)) i also had a problem installing it but fixed it easily. if you have any problems, feel free to ask more

0
votes

How do you install opencv? do you try this code?

pip install opencv-python

try it and open a new python file and type this code on it.

import cv2
print(cv2.__version__)

check this answer and report result. good luck!