Skip to content

Installation fails on macOS Monterey with Python 3.13.10 due to opencv-python build failure #1247

Description

@Anna-Ku

Description

I'm unable to install opencv-python==5.0.0.93 on macOS Monterey with Python 3.13.

The installation attempts to build opencv-python from source, and the build fails during the CMake/Ninja linking stage.

Environment

  • opencv-python: 5.0.0.93
  • OS: macOS Monterey 12.7.6
  • Python: 3.13.10
  • pip: 26.1.2

Error

The build fails with(The complete installation/build log is attached to this issue for reference):

clang: error: no such file or directory: 'zlib'

ERROR: Failed building wheel for opencv-python

error.log

Could you please advise if there is a recommended way to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions