Installation on Ubuntu 16.04 with Anaconda for python 3.5

asked 2016-10-25 12:38:46 -0600

kasparov092 gravatar image

updated 2016-10-25 18:19:05 -0600

Hello,

I am trying to install opencv so that I can use it with Anacaonda. I have tried different methods but they fail.

I am not sure if I have to change the $PATH variable or not but as I list the packages installed in anaconda, I can see the opencv3 installed already.

I keep getting the issue:

ImportError: No module named 'cv2'

Any Help or tutorials I can follow to finalize this installation ?

EDIT 1:

After following the steps in the official installation guide, I cannot yet make it work neither in anaconda nor in python/python3.5 command through terminal

EDIT 2:

I copied /opencv-2.4.13/build/lib/cv2.so to /usr/local/lib/python3.5/site-packages/cv2.so and now I can make it work when I use python3.5 through the terminal. But I try to do the same with anaconda and copy that file in /anaconda3/lib/python3.5/site-packages/cv2.so, it still doesnt work in spyder

edit retag flag offensive close merge delete

Comments

1

are you aware, that those anaconda builds are well meant, but 3rd party, not from opencv ?

(opencv devs would probably recommennd building from github src, locally )

berak gravatar imageberak ( 2016-10-25 13:08:43 -0600 )edit

I am not sure I understand what you mean... I am sure there is a way to make opencv works with anaconda...Just I am not sure if I am linking them correctly or not

kasparov092 gravatar imagekasparov092 ( 2016-10-25 13:48:36 -0600 )edit

for me it work when I export the anaconda directory before i use python scripts...hope it helps

picaso gravatar imagepicaso ( 2017-03-23 12:41:09 -0600 )edit