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://imgur.com/a/aLtuMm2
Image 1 ->pip list showing opencv
Image 2 -> pip list showing condo
Image 3 -> importing error
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.