import cv2 fails (opencv 3.1 build from source,linux)

asked 2016-02-10 06:19:12 -0500

jeanpat gravatar image


I build opencv 3.1 from source on manjaro linux.

I used cmake-gui then make and sudo make install without visible problems.

I can find cv2:

$ pwd
[jeanpat@dip4fish site-packages]$ ls

But python (2 or 3) is unable to import the cv2 module:

$ python2
Python 2.7.11 (default, Dec  6 2015, 15:43:46) 
[GCC 5.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cv2

Thank you for your advices to fix that issue.

edit retag flag offensive close merge delete