Ask Your Question

Revision history [back]

can't find cv2 in python 3.4 in linux(raspberry pi)

hello i tried to install openCV on a raspberry pi. i used this "howTo"

http://www.pyimagesearch.com/2015/07/27/installing-opencv-3-0-for-both-python-2-7-and-python-3-on-your-raspberry-pi-2/

everything works well, even the "make" of openCV I allso checked that the bindings are correct like:

pi@raspberrypi:~/.virtualenvs/cv/lib/python3.4/site-packages $ ls -l
lrwxrwxrwx  1 pi pi   58 Dec 13 19:58 cv2.so -> /usr/local/lib/python3.4/site-packages/cv2.cpython-34mu.so

does anyboda has an idea what I can try know, that it is possible to import cv2 in python without getting the message

ImportError: No module named 'cv2'

I have the output of the complete install procedure stored in a textfile :-) if you have questions, please ask thank you in advance stefan

can't find cv2 in python 3.4 in linux(raspberry pi)

hello i tried to install openCV on a raspberry pi. i used this "howTo"

http://www.pyimagesearch.com/2015/07/27/installing-opencv-3-0-for-both-python-2-7-and-python-3-on-your-raspberry-pi-2/

everything works well, even the "make" of openCV I allso checked that the bindings are correct like:

pi@raspberrypi:~/.virtualenvs/cv/lib/python3.4/site-packages $ ls -l
lrwxrwxrwx  1 pi pi   58 Dec 13 19:58 cv2.so -> /usr/local/lib/python3.4/site-packages/cv2.cpython-34mu.so

does anyboda has an idea what I can try know, that it is possible to import cv2 in python without getting the message

ImportError: No module named 'cv2'

after some recherche in the net I found out that it works when I enter the lines

import sys
sys.path.append('/usr/local/lib/python3.4/site-packages')

after that i can import cv2. - can anybody give me a hint how i can fix that

I have the output of the complete install procedure stored in a textfile :-) if you have questions, please ask thank you in advance stefan