Answers for "no module named cv2"

18

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
1

no module named cv2

#To get out of this problem write
pip install opencv-python 
#in your terminal
Posted by: Guest on June-25-2021
0

cv2 not found

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

ModuleNotFoundError: No module named 'cv2'

python -m pip install opencv-python
Posted by: Guest on July-18-2021
0

ModuleNotFoundError: No module named 'cv2'

sudo apt-get install python-opencv libopencv-dev python-numpy python-dev
Posted by: Guest on March-13-2021

Code answers related to "no module named cv2"

Python Answers by Framework

Browse Popular Code Answers by Language