Unable to install opencv 3.1 with python 3.5, works with 2.7 only

Today I installed python 3.5.1 with miniconda on ubuntu 15.10, it works fine. I tried to install opencv 3, so I completed task 1, and 2 from this site https://help.ubuntu.com/community/OpenCV and ran this command too: sudo apt-get install python-opencv.

After that if I tried to run python 3.5.1 with an script using opencv in terminal I got this message : Import error: no module named 'cv2', but if I run it using sublime text, it works fine, I printed the version, so I found out sublime text uses python 2.7.10.

How can I make opencv work with python 3.5.1? I did not install python 2.7.10,and I am new to linux. If I type python into terminal it uses 3.5.1, so thats good, and I can change the sublime text too, thats not the problem. Any help is appreciated :)

Answers


I managed to do it thanks to this site: https://rivercitylabs.org/up-and-running-with-opencv3-and-python-3-anaconda-edition/ . The solution was :

conda install -c https://conda.binstar.org/menpo opencv3

Somehow I did not think, that anaconda offers opencv binaries. Great stuff


Need Your Help

Cannot call the method save of undefined. Mongojs

javascript node.js mongodb mongojs

I have a simple method as follows to write to a mongodb database. It uses the Mongojs module. Everything seems fine with the exception of the last line. I'm getting "TypeError: Cannot call method '