ImportError: No module named 'cv2' Python3
Try
pip3 install opencv-python
to get the cv2
. I'm not sure when opencv-python
became available. I'd been building opencv by hand, but when I looked a few weeks ago, there it was. I'm using cv2
with Python3 in a VM that's running ubuntu/trusty64
.
Try
sudo python3.5 -m pip install opencv-python
It worked for me
Your conda openCV is installed for use by your home python2.7. Your opencv installed via pip3 is for use in your face_det virtual environment. It doesn't look like you're in that virtual environment when you opened python3 in the first code block. Try
source activate face_detpython3import cv2