Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

Hello,

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
/usr/local/lib/python2.7/site-packages
[jeanpat@dip4fish site-packages]$ ls
cv2.so

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.