asdfkjasdfjk
asdfkjasdfjk

Reputation: 3894

No matching distribution found for opencv-python

I have python 2.7 and when I try to install opencv I get error

pip install opencv-python

Looking in indexes: http://pypi.dd.dynamore/simple, https://pypi.python.org/simple/
Collecting opencv-python
  ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python

I have the latest pip version (19.2.3). And I have also installed this

sudo apt-get install python-opencv

Upvotes: 2

Views: 26102

Answers (4)

Prasanna R
Prasanna R

Reputation: 101

The following command worked for me:

python3.8 -m pip install opencv-contrib-python

Upvotes: 0

Ayub Metah
Ayub Metah

Reputation: 1

Try using python.exe -m pip install opencv-contrib-python . It worked for me.

Upvotes: 0

Vineet Arora
Vineet Arora

Reputation: 11

This error was also occurred in my case. So try using:

pip install opencv-python

Upvotes: 1

Joey Cullmann
Joey Cullmann

Reputation: 45

I run into the same problem when trying to install this library for learning ML. After a little online research that points me to the documentation, I believe this error is caused by a compatibility issue between python2 and this module.

Try using python3 and install this package again with pip3 install opencv-python

Hope this helps!

Upvotes: 4

Related Questions