skip to Main Content

I tried to install python-opencv using pip, but the terminal throws an error every time:

Command Issued:

pip install opencv-python

Traceback:

ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python

I’m using the latest version of pip. Also, I am not a sudo user, so I can’t install it via the GitHub Repo.
How do I install opencv-python?

My python version is 3.7.6.
My Linux version is CentOS 7

2

Answers


  1. This is the usual output if there is no corresponding wheel for the target OS you are currently using. I have encountered this particular error when I tried to install python-opencv on Alpine Linux. The problem is that Alpine is not supported by manylinux as it is not a GNU/Linux distro. This Github issue describes the problem and a possible workaround, but I suggest to use a Debian based distro instead.

    Login or Signup to reply.
  2. That happend to me too. That was because a weak internet connection.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search