[Python] Failed to Build Installable Wheels for OpenCV-Python on macOS

Discussão em 'Python' iniciado por Stack, Fevereiro 8, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to install the opencv-python library on macOS using pip

    pip install opencv-python


    I keep encountering this error:


    ERROR: Failed to build installable wheels for some pyproject.toml based projects (opencv-python)
    ​

    pip install --upgrade pip setuptools wheel


    I have tried to solve it,

    Installed dependencies via Homebrew:

    brew install cmake pkg-config libjpeg libpng libtiff openexr eigen tbb ffmpeg


    Attempted to manually build OpenCV from source using CMake (installed via Homebrew).

    My Setup:

    macOS Version: [macOS Big Sur 11.4]

    Python Version: [Python 3.10.9]

    pip Version: [pip 25.0 from /Users/demo/anaconda3/lib/python3.10/site-packages/pip (python 3.10)]


    Question: What am I missing? How can I resolve this issue and successfully install OpenCV in Python on macOS?

    Continue reading...

Compartilhe esta Página