镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Can we upgrade NumPy version from 1.22 to 1.24 or more for Python 3.11? #835

Closed

Description

@rinarakaki

Expected behaviour

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")
  • I'm using the latest version of opencv-python

Activity

  1. tomsweeting commented on Apr 28, 2023

    @tomsweeting
    Contributor

    @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.

  2. asmorkalov commented on May 29, 2023

    @asmorkalov
    Collaborator

    According to https://numpy.org/news/ 1.23 is minimal Numpy version that supports Python 3.11.

  3. asmorkalov commented on Jun 29, 2023

    @asmorkalov
    Collaborator

    Upgraded to 1.23.5 as minimal Numpy version for Python 3.11 in #839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions