-
Notifications
You must be signed in to change notification settings - Fork 896
Building wheel for opencv-python (pyproject.toml) - MacOS #657
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
Comments
Any update?? |
I have the same problem and have tested all solutions I could find but no luck :( macOS: Mojave |
I'm sorry for the late response. @staz9 @iska69, could you please use By the way, we build wheels on MacOS Catalina, which is higher than Mojave. That is why you are not installing a pre-built wheel, but building it from source. I guess there is an issue during this build. |
Hello, I've got (almost) the same problem. ERROR: Failed building wheel for opencv-python macOS El Capitan I tried to install a previous version of openCV but that doesn't work either. |
Hello! It looks like your OS is older than macOS Catalina (10.15.7) which is used for building OpenCV Python packages. That's why you not just install a pre-built wheel ( Could you add By the way, the new OpenCV release has happened (4.6.0), you can try to use the latest version of opencv-python Python package installing it (link to PyPI):
|
I also experience this issue when installing |
(MD) (base) MacBook-Air-di-Gianluca:GUI Gianluca$ python3 --version × Building wheel for opencv-contrib-python (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. This happened on MacOS Mojave 10.14.6 |
some problem |
Same here on raspberry pi. I tried with earlier versions until I got it installed.
worked for me. |
It might have to do with Mojave messing with CMake. I've never gotten CMake to work since upgrading, but I also only started using it once Homebrew stopped supporting Mojave, so… Another thing it's doing is launching Git (application) every time I run the installation in Terminal. I have GNU Make 3.81 |
None of the solutions work for opencv-python 4.5 in Mac OS El Capitan (10.11.6).... I'm stuck with this OS |
Comment from molcik: pip3 install opencv-contrib-python==4.5.3.56 Also works for me |
Hello everyone, I work on Mac OSX.At the moment I am trying to install OpenCV on my Mac OS 10.14.The installation process was successful, up to the lines "Building wheels for collected packages: opencv-python |
Save problem with @Bonitodelcapo on Mac Mojave OS, still haven't figure out a solution. Have you solve the problem? |
The only thing i could do was to upgrade to another OS version
Il giorno lun 26 dic 2022 alle ore 13:24 Thomaswbt ***@***.***>
ha scritto:
… Save problem with @Bonitodelcapo <https://github.com/Bonitodelcapo> on
Mac Mojave OS, still haven't figure out a solution. Have you solve the
problem?
For @Alexandro1112 <https://github.com/Alexandro1112> , a thing that
might help is to install using *pip -v* command, which will log out the
current step in building wheels so that you can know the specific problem
you are stuck with.
—
Reply to this email directly, view it on GitHub
<#657 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APO7Y5E7IYIDVV76HSOZEV3WPGFA7ANCNFSM5UGUHXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Bonitodelcapo please hide your long response into details block like this: Summary<details>
<summary>Example</summary>
some text
</details> |
@Thomaswbt as i know, command
|
This thread has been very helpful for me, I finally got it properly downloaded after many hours of trying. Theres a few steps I tried that weren't mentioned here but I'll go through my exact steps: First of all 10.15.7 OS is a must I believe, otherwise this is likely different. Then download a version of python that works, in my case 3.8 seems like a solid fit. Grab the following (may vary slightly): Secondly (and I haven't seen mentioned yet) you need xCode on mac. It mentions this sometimes when it fails. Sign up as a developer ( https://developer.apple.com/download/all/?q=xcode ) and download a version that works for you (not very hard just need an email). In my case it was 12.4. Then in your mac terminal run "sudo xcodebuild -license" to get it fully setup to use. Lastly, start the download. For me it took about an hour of shear terror waiting. But ran successfully in the end. Good luck! |
@2Arms2Legs I tried to install via xcode on my macos 13.1, the installation was not supported on my device, and after a long wait it gave me an error. I prefer installing opencv via pip, with command , which i wrote above. |
python版本和opencv版本不兼容,请参考https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/ Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple |
I am trying to install opencv-python but it is always stuck at: Building wheel for opencv-python (pyproject.toml). I tried installing the older versions but it happens with all of them, just stays at building wheel for an hour and nothing happens. I have done
pip install --upgrade pip setuptools wheel
as well but no success yet.OS: MacOS Mojave

Command:
pip3 install opencv-python
Issue:
The text was updated successfully, but these errors were encountered: