opencv-python
opencv-python copied to clipboard
fix: add explicit NumPy version constraints for Python 3.13+ and 3.14 (NumPy 2.x compatibility)
Summary
- Fix NumPy 2.x ABI compatibility issue for Python 3.13+ and 3.14
- Changed to specify explicit minimum NumPy versions per Python version
- This resolves the runtime error where wheels compiled against NumPy 1.x fail when used with NumPy 2.x
Changes
- Python 3.9-3.12:
- Python 3.13:
- Python 3.14+:
Root Cause
The wheel metadata declared as dependency at install time, but the compiled wheels may have been built against NumPy 1.x headers, causing ABI incompatibility at runtime.
Fixes #1201