opencv / opencv/opencv-python

windows 11 with python 3.14 support

Open
#1,160 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

tengo el error al instalar la libreria

Collecting opencv-python
Downloading opencv_python-4.12.0.88-cp37-abi3-win_amd64.whl.metadata (19 kB)
Collecting numpy<2.3.0,>=2 (from opencv-python)
Downloading numpy-2.2.6.tar.gz (20.3 MB)
---------------------------------------- 20.3/20.3 MB 21.8 MB/s 0:00:01
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
╰─> [49 lines of output]
Traceback (most recent call last):
File "D:\softapps\pyjdfx\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
~~~~^^
File "D:\softapps\pyjdfx\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\softapps\pyjdfx\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\pythouser\AppData\Local\Temp\pip-build-env-bdkdpomy\overlay\Lib\site-packages\mesonpy_init_.py", line 1144, in wrapper
return func(*args, **kwargs)
File "C:\Users\pythouser\AppData\Local\Temp\pip-build-env-bdkdpomy\overlay\Lib\site-packages\mesonpy_init_.py", line 1197, in build_wheel
with project(config_settings) as project:
~~~~~~~~^^^^^^^^^^^^^^^^^
File "D:\softapps\pyjdfx\Lib\contextlib.py", line 141, in enter
return next(self.gen)
File "C:\Users\pythouser\AppData\Local\Temp\pip-build-env-bdkdpomy\overlay\Lib\site-packages\mesonpy_init
.py", line 1063, in project
yield Project(source_dir, build_dir, meson_args, editable_verbose)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pythouser\AppData\Local\Temp\pip-build-env-bdkdpomy\overlay\Lib\site-packages\mesonpy_init
.py", line 675, in init
self._ninja = env_ninja_command()
~~~~~~~~~~~~~~~~~~^^
File "C:\Users\pythouser\AppData\Local\Temp\pip-build-env-bdkdpomy\overlay\Lib\site-packages\mesonpy_init
.py", line 1121, in _env_ninja_command
version = subprocess.run([ninja_path, '--version'], check=False, text=True, capture_output=True).stdout
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\softapps\pyjdfx\Lib\subprocess.py", line 554, in run
with Popen(*popenargs, **kwargs) as process:
~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "D:\softapps\pyjdfx\Lib\subprocess.py", line 1038, in init
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\softapps\pyjdfx\Lib\subprocess.py", line 1552, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
# no special security
^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
cwd,
^^^^
startupinfo)
^^^^^^^^^^^^
PermissionError: [WinError 5] Acceso denegado
[end of output]

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the opencv-python installation on Windows 11 with Python 3.14 using the reported pip output. Start by investigating NumPy 2.2.6's source-build path and the Ninja subprocess failure with WinError 5; done means establishing whether a compatible installation works or clearly documenting the support limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, opencv, python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.