You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can we upgrade NumPy version from 1.22 to 1.24 or more for Python 3.11? #835
numpy==1.22 emits warning: RuntimeWarning: NumPy 1.22.0 may not yet support Python 3.11.
Actual behaviour
NumPy's Python 3.11 support begins from version 1.24.
Steps to reproduce
pip3 install opencv-python
Issue submission checklist
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
@rnarkk I also encountered this issue today, but instead of installing via pip I was trying to build from source for Python 3.11 with gstreamer support.
I was able to compile by setting the required numpy version 1.24.3, so I have put in a small PR to fix the issue. If you urgently need this to work with Python 3.11, it is possible to clone the repo and build manually as I did by making the same changes.
Activity
tomsweeting commentedon Apr 28, 2023
@rnarkk I also encountered this issue today, but instead of installing via pip I was trying to build from source for Python 3.11 with gstreamer support.
I was able to compile by setting the required numpy version 1.24.3, so I have put in a small PR to fix the issue. If you urgently need this to work with Python 3.11, it is possible to clone the repo and build manually as I did by making the same changes.
asmorkalov commentedon May 29, 2023
According to https://numpy.org/news/ 1.23 is minimal Numpy version that supports Python 3.11.
Fix: numpy version for python 3.11 (#839)
asmorkalov commentedon Jun 29, 2023
Upgraded to 1.23.5 as minimal Numpy version for Python 3.11 in #839