0

I need to execute a Python application, but I am getting this error:

Traceback (most recent call last): File "dataset.py", line 8, in import cv2 ImportError: No module named cv2

I have followed the face detection concept in 96 boards, but I keep getting above error message, when I run the script like this:

sudo python dataset.py
user1438038
  • 5,821
  • 6
  • 60
  • 94
ravi
  • 41
  • 1
  • 4

1 Answers1

5

Have you installed openCV?

sudo apt-get install python-opencv 

If you want install it with pip:

pip install opencv
mandrewcito
  • 170
  • 8