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

asked 2016-12-14 03:26:22 -0600

stefanEfg gravatar image

updated 2016-12-14 11:49:57 -0600

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

http://www.pyimagesearch.com/2015/07/...

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

edit retag flag offensive close merge delete