Hi All,
I’m having some difficulties with OpenCV on my Raspberry Pi, I’m looking to use it for a facial recognition project, but am running into this error:
"Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
ImportError: No module named cv2“
Hoping someone can point me in the right direction so I can move ahead with the project.
Thanks!
2 Likes
Hi Jerry,
Welcome to the forum 
Looking at the error that you have there, it would appear that you don’t have cv2 installed, are you able to open up a terminal on your pi and put in the following command?
sudo cd /
pip3 install opencv-python
another thing to check is that when you’re importing cv2 in your code that it matches what I’ve put below as it is case sensitive.
import cv2
2 Likes