AnsweredAssumed Answered

Install python-opencv module

Question asked by Erik Raynolds on May 13, 2017
Latest reply on May 19, 2017 by Erik Raynolds

Dears,

 

I got imx Yocto image with python & opencv installed. I'd like to use opencv within python so I need to include opencv module.

 

root@imx6qpsabreauto:/# python

Python 2.7.12 (default, Apr  7 2017, 11:56:02)

[GCC 6.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

>>> 

 

II did try to isntall but with no success

 

root@imx6qpsabreauto:/# pip install opencv-python

Collecting opencv-python

  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c29ea10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/opencv-python/

  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c29e990>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/opencv-python/

  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c29e0d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/opencv-python/

  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c29ebd0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/opencv-python/

  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c29ed50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/opencv-python/

  Could not find a version that satisfies the requirement opencv-python (from versions: )

No matching distribution found for opencv-python

 

How do I install python-opencv module? I don't want to build the image again because of this.

 

Outcomes