Answers for "import cv2 could not be resolved"

C
19

ModuleNotFoundError: No module named 'cv2'

To solve this run the following
# main opencv
pip install opencv-python
# contrib package for the extra features
pip install opencv-contrib-python

The official installation instructions are on the opencv website.
More info can be found here: 
https://www.pyimagesearch.com/opencv-tutorials-resources-guides/
Posted by: Guest on June-26-2020
0

cv2 not found

python -m pip install opencv-python
Posted by: Guest on September-21-2020
0

Import "" could not be resolved

On my computer I have 3 Pythons, a 3.6 from Anaconda, and a 2.7 & 3.7 that are regular python. Prompted by a nudge from this GH issue, I switched from the Anaconda 3.6 to the 3.7, and back again, and the problem went away.
Posted by: Guest on November-13-2021

Code answers related to "import cv2 could not be resolved"

Code answers related to "C"

Browse Popular Code Answers by Language