I tried to install opencv2 to my raspberry pi 3 following this tutorial pyimagesearch.com ,I made it to the end. But when I tried to run a program, it shows ImportError : no module named 'cv2' as in this picture screenshot. The program is running well on python2.7.9, but why it pop that error in python 3.4? How can I fix this error? If anyone can help me it would be much appreciated, because I need that program to run in python3.4. Thank you
Asked
Active
Viewed 1,003 times
1 Answers
0
I fixed my own problem haha.. All I need is to copy cv2.so from /usr/local/lib/python3.4/dist-packages/cv2.so to /usr/lib/python3.4/cv2.so .... Tried my program after that, then it worked as good as in python2.7

ian maynard
- 69
- 2
- 9