-5

So, I've been trying to import openCV to my python notebook but I'm having issues with it, I've tried multiple installation methods and I think I now have multiple versions for python 2.7 and 3.7.7 frankly, at this point I'm just lost.

Images(3): https://i.stack.imgur.com/7yuXD.jpg

Image 1 ->pip list showing opencv
Image 2 -> pip list showing condo
Image 3 -> importing error

  • 1
    Please do not share information as images unless absolutely necessary. See: https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors, https://idownvotedbecau.se/imageofcode, https://idownvotedbecau.se/imageofanexception/. The issue is likely that you're running the program with a different Python installation than the one to which you added the libraries. – AMC May 04 '20 at 03:50
  • 1
    Pretty sure you have installed those packages in an another environment or for a different version of python – Adnan karim May 04 '20 at 03:58
  • That's what I though too but I'm just a beginner at terminal and I have no idea how to change that, I tried a solution on here and one on GeeksforGeeks but still lost. – Ankush Mehta May 04 '20 at 04:20

1 Answers1

0

Suppose you are using python3.7.7 in jupyter. when you use pip to install opencv, it is probably installing it for the python2.7, so to installl it for python3.7.7 you have to install it like this:

python3.7.7 -m pip install opencv-python
Adnan karim
  • 1,009
  • 10
  • 15