-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"pip install opencv-python" fails to find opencv-python #102
Comments
Can you install any other wheels like numpy? To my knowledge, pip checks only the wheel filename tags and if they not match your system and Python it will throw that error. This seems like the same issue as in here: #83 (comment) (have a look at the latest comments). |
|
Upon further research it seems like CentOS should be compatible with manylinux as the criteria for making a wheel manylinux compatible seems to be building it on CentOS 5. I found a workaround that I will try, but I am really not sure why manylinux wheels would not build on CentOS 7. |
Yes, CentOS is compatible with manylinux wheels. There's something odd going on with your Python installation. Are you sure you are using correct |
I am sure I am using the correct pip, the pip I am using corresponds to the virtualenv I am using. I tried pip3 and it gives me the same error : |
The issue seems to be the same with all wheel packages which means that your Python installation is not compatible with manylinux1 wheels. I'm afraid this issue is not really related to |
Fair enough. Thank you for your time, I will try to investigate as to why my python distribution is not compatible with manylinux wheels. |
What about cygwin installations of python (2.7 or 3.6)? It appears as if there is no way to install opencv-python? %pip2.7 install opencv-python %pip3.6 install opencv-python |
@udbraumann I doubt the opencv-python wheels are compatible with Cygwin, which probably isn't compatible with the "manylinux" spec, and also isn't compatible with wheels built for regular Windows Python. I suspect you'll have to build OpenCV manually for Cygwin. |
@waveform80 I need to say that OpenCV 3.4.1 itself is being shipped with Cygwin. opencv-python however seems to be not just an interface to OpenCV, but rather some combination of installation and interface. Could you please give some hints how to build opencv-python "on foot"? |
Bear in mind that this opencv-python repository has little to do with the OpenCV project itself; it exists to build and provide the pre-compiled wheels of OpenCV (in a variety of configurations) to the PyPI archive for use by compatible platforms (my assumption above is that Cygwin is not a compatible platform). You're probably best off looking at instructions for building the OpenCV library itself (which should include the Python 2/3 bindings), bearing in mind that Cygwin is likely to be closer to a Linux build than a Windows build. Hence the OpenCV build instructions for Linux may help (although they assume an Ubuntu style package manager; you'll need to translate those bits as necessary for Cygwin). Alternatively there appear to be some Cygwin specific instructions from a quick Google, though they don't appear to include the necessary options to build the Python bindings (might be worth combining those instructions with some bits from the official guide). If you run into issues building OpenCV itself, these are best directed to the OpenCV repository itself rather than here. |
did you solve the problem? |
unfortunately not, but admittedly I did not try too long, as I felt I am the only one missing opencv-python for python. |
You're not alone. |
Expected behaviour
"pip install opencv-python" should install opencv-python, as it has on my Windows machine.
Actual behaviour
I am sshing into a CentOS machine and "pip install opencv-python" does not find it, instead I get the message:
Collecting opencv-python Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python
My pip and wheel installations are all up to date, which seemed to be the issue for other people with the same problem. The manylinux wheels do not work for me either, I get a message back saying:
opencv_python-3.4.1.15-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.
I have used manylinux wheels for other things in the past and they have worked, so I am fairly confident that I should be able to use it. Is opencv known to not be compatible with CentOS, or am I missing something?
Steps to reproduce
"pip install opencv-python" on a CentOS machine.
CentOS Linux release 7.4.1708
Python Version: 3.6.3
The text was updated successfully, but these errors were encountered: