2

I'm trying to install opencv with pip3 on my Devuan GNU/Linux 3, and this is what happens:

$ pip3 install opencv
Collecting opencv
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/opencv

and indeed, if you browse that URL, you get a 404 page.

Why is this happening? Am I to blame? Devuan? pypi.org administrators? Somebody else?

Also - can I replace the URL somehow? Or manually install from somewhere?

3
  • Please see the choices pypi.org/search/?q=opencv Apr 28, 2020 at 11:13
  • pip3 install opencv-python. The package is not called opencv sicne it's a Python binding.
    – hoefling
    May 30, 2020 at 12:43
  • @hoefling: Make this an answer?
    – einpoklum
    May 31, 2020 at 6:26

2 Answers 2

1

The package is named opencv-python on PyPI, so install it instead of non-existent opencv:

pip3 install opencv-python
1

You can download the OpenCV source file and install it using pip. The installation file will have a .whl or Wheel filetype. You can download this one if you're on x86_64

Now go to the download location and type -

pip3 install opencv

Press Tab for auto-completion of the filename. It should be easily installed this way.

2
  • You mean, it'll be a file which begins with opencv? Also, is the second link the result of a build of the source in the first link?
    – einpoklum
    Apr 28, 2020 at 8:00
  • Yes you are absolutely right
    – rubaiat
    Apr 28, 2020 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .