-
Notifications
You must be signed in to change notification settings - Fork 882
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
Failed to build opencv-python ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects #812
Comments
@lzhhh93 Your build log clearly says that you are using Python version 3.6, not 3.9.... Please update to recent Python. Python 3.6 has been deprecated. |
Experiencing a similar issue with Python3.11, found those stack overflow workaround as well but no luck here either.
|
@Matsoosterlaken Me too, seems like OpenCV does not support Python 3.11 till now. |
@skvark I'm trying to install opencv-python 4.7.0.72 on Ubuntu and I'm using python 3.6 . |
I'm also facing the same issue. |
any updates on this? |
Hi |
try installing an earlier version of OpenCV, like in my case the following version worked. |
yes, try installing a earlier version of OpenCV . |
I have also problem with installing the package × pip subprocess to install build dependencies did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × pip subprocess to install build dependencies did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. ' |
consider installing python3-dev or python3-devel using yum and update setuptools with pip and setuptools wheel ,it worked for me with opencv-python-headless when it cant build wheel |
I'm having this same issue trying to build a wheel for openCV on my raspberry pi 3. I installed dnf so I could do what you said, Using didn't work, because it said that there were no enabled repositories in /etc/yum/repos.v or /etc/yum.repos.v . What commands would you use to update your setuptools and wheel with pip? Should I use pip3 since the program is for python3? I apologize, I am fairly new to this and taking over someone else's project so there has been a lot of unknown variables. Thank you for the help! |
I also met this problem. I solved this by trying |
Try using |
This should work for most of us. You can refer to opencv-python release history (https://pypi.org/project/opencv-python/#history) to pick one supporting your python versions. The supported python versions are listed at the bottom of each release note. |
Hi everyone, I am trying to install opencv-python 4.7.0.72 in unbuntu and it shows that no wheels can be built. My pip has updated to 21.2.1 and Python version is 3.9. Apprecitae for any tipps. Thanks a lot.
The text was updated successfully, but these errors were encountered: