3

Im trying to install this package using my windows 11 machine, python version 3.14.0 and pip version 25.3 and numpy 2.3.4

This is what I get:

Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\user\AppData\Local\Programs\Python\Python314\python.exe

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> numpy

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I don't know what I have to do, my PIP is already in PATH, I already installed another frameworks with pip, I need this in my windows machine, in linux mint and endeavoros work perfectly, can someone help me?

5
  • 1
    It's strange it's trying to build wheel, given that pre-build whl file for numpy 2.3.4 for python 3.14 on windows is available on pypi. Commented Nov 4 at 13:25
  • 2
    you could run pip install with option --verbose and it may display more details about problem. Commented Nov 4 at 13:42
  • 6
    opencv doesn't support python 3.14 yet, see the bottom of this page: pypi.org/project/opencv-python/#installation-and-usage Commented Nov 4 at 13:50
  • It keeps saying subprocess exted with error and (pyproject.toml) did not run sucessfully with the note that is an issue with the package, not pip. I really dont know what to do Commented Nov 4 at 13:51
  • 3
    Solved, just had to install a 3.13 python version. Thanks everybody. Commented Nov 4 at 14:02

1 Answer 1

0

opencv-python depends on numpy versions earlier than 2.3. However, the latest numpy version earlier than 2.3(2.2.6), is not compatible with Python 3.14.

This is the reason why opencv cannot be installed with Python 3.14.

The first thing I would like to see resolved is for opencv to support numpy 2.3 or later. I'm not sure why, but development seems to be significantly behind schedule.

The second thing I would like to see resolved is for a numpy version 2.2.6 whl to be created. However, since the latest numpy version, 2.3.4, can be installed with Python 3.14, there seems to be little incentive to create a 2.2.6 whl.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.