Wizard
Wizard

Reputation: 1663

OpenCV install on Python 3.6: ModuleNotFoundError

I am getting the following error when using import cv2:

ModuleNotFoundError: No module named 'cv2'

My version of Python is 3.6 64 bit. I have downloaded the whl file to install it via pip manually, and have also installed it with pip install opencv-python however I still get ModuleNotFoundError.

pip outputs Requirement already satisfied: opencv-python in c:\...\python36\site-packages

Help would be much appreciated.

Upvotes: 1

Views: 2896

Answers (2)

Akay Nirala
Akay Nirala

Reputation: 1158

Use pip install -U opencv-python

Upvotes: 1

R.D
R.D

Reputation: 226

Your download must have been corrupted. It happened to me too. Simply uninstall the package and use

sudo apt-get install python open-cv

Upvotes: 2

Related Questions