Skip to content

python 3.14 free-threaded not supported #1146

@monkeycc

Description

@monkeycc

python3.14t -m pip install opencv-python

Looking in indexes: https://mirrors.cernet.edu.cn/pypi/web/simple
Collecting opencv-python
  Using cached https://mirrors.sustech.edu.cn/pypi/web/packages/ac/71/25c98e634b6bdeca4727c7f6d6927b056080668c5008ad3c8fc9e7f8f6ec/opencv-python-4.12.0.88.tar.gz (95.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy<2.3.0,>=2 in d:\python314\lib\site-packages (from opencv-python) (2.2.6)
Building wheels for collected packages: opencv-python
  Building wheel for opencv-python (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for opencv-python (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2276 lines of output]


      --------------------------------------------------------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v144)' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      CMake Error at CMakeLists.txt:2 (PROJECT):
        Generator

          Ninja

        does not support platform specification, but platform

          x64

        was specified.


      -- Configuring incomplete, errors occurred!
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v144)' generator - failure
      --------------------------------------------------------------------------------



      --------------------------------------------------------------------------------
      -- Trying 'Visual Studio 17 2022 x64 v144' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
      CMake Error at CMakeLists.txt:2 (PROJECT):
        Failed to run MSBuild command:

          D:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe

        to get the value of VCTargetsPath:

          闁\xab鍌滄暏娴\x9c?.NET Framework MSBuild 閻楀牊婀\xb0 17.13.19+0d9f5a35a
          閻㈢喐鍨氶崥顖氬З閺冨爼妫挎稉?2025/9/20 23:55:51閵\x86?

          閼哄倻鍋\xa3 1 娑撳﹦娈戞い鍦\xad娲伴垾娣\x90:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_cmake_test_compile\build\CMakeFiles\4.1.1\VCTargetsPath.vcxproj閳\xa5?姒涙\xa8款吇閻╊喗鐖\xa3)閵\x86?
          D:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: 閺冪姵纭堕幍鎯у煂 v144 閻ㄥ嫮鏁撻幋鎰\xac浼愰崗?楠炲啿褰村\xae搞儱鍙块梿?=閳ユ抚144閳\xa5?閵嗗倽瀚㈢憰浣峰▏閻\xa2?v144 閻㈢喐鍨氬\xae搞儱鍙挎潻娑滎攽閻㈢喐鍨氶敍宀冾嚞鐎瑰\xa4庮棅 v144 閻㈢喐鍨氬\xae搞儱鍙块妴鍌涘灗閼板拑绱濋崣顖欎簰閸楀洨楠囬崚鏉跨秼閸\x93?Visual Studio 瀹搞儱鍙块敍灞炬煙瀵\xae蹇旀Ц闁\xab姘崇箖闁\xab澶嬪\xabㄩ垾婊堛\x80嶉惄顔光偓婵婂綅閸楁洘鍨ㄩ崣鎶芥暛閸楁洖鍤\xae鐠囥儴袙閸愯櫕鏌熷\xa6楀牞绱濋悞璺烘倵闁\xab澶嬪\xabㄩ垾婊堝櫢鐎规俺袙閸愯櫕鏌熷\xa6楀牏娲伴弽鍥b偓婵勨偓?[C:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_cmake_test_compile\build\CMakeFiles\4.1.1\VCTargetsPath.vcxproj]
          瀹告彃鐣\xac閹存劗鏁撻幋鎰般\x80嶉惄顔光偓娣\x90:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_cmake_test_compile\build\CMakeFiles\4.1.1\VCTargetsPath.vcxproj閳\xa5?姒涙\xa8款吇閻╊喗鐖\xa3)閻ㄥ嫭鎼锋担?- 婢惰精瑙﹂妴?

          閻㈢喐鍨氭径杈\xab瑙﹂妴?

          閳ユ窅:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_cmake_test_compile\build\CMakeFiles\4.1.1\VCTargetsPath.vcxproj閳\xa5?姒涙\xa8款吇閻╊喗鐖\xa3) (1) ->
          (PrepareForBuild 閻╊喗鐖\xa3) ->
            D:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: 閺冪姵纭堕幍鎯у煂 v144 閻ㄥ嫮鏁撻幋鎰\xac浼愰崗?楠炲啿褰村\xae搞儱鍙块梿?=閳ユ抚144閳\xa5?閵嗗倽瀚㈢憰浣峰▏閻\xa2?v144 閻㈢喐鍨氬\xae搞儱鍙挎潻娑滎攽閻㈢喐鍨氶敍宀冾嚞鐎瑰\xa4庮棅 v144 閻㈢喐鍨氬\xae搞儱鍙块妴鍌涘灗閼板拑绱濋崣顖欎簰閸楀洨楠囬崚鏉跨秼閸\x93?Visual Studio 瀹搞儱鍙块敍灞炬煙瀵\xae蹇旀Ц闁\xab姘崇箖闁\xab澶嬪\xabㄩ垾婊堛\x80嶉惄顔光偓婵婂綅閸楁洘鍨ㄩ崣鎶芥暛閸楁洖鍤\xae鐠囥儴袙閸愯櫕鏌熷\xa6楀牞绱濋悞璺烘倵闁\xab澶嬪\xabㄩ垾婊堝櫢鐎规俺袙閸愯櫕鏌熷\xa6楀牏娲伴弽鍥b偓婵勨偓?[C:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_cmake_test_compile\build\CMakeFiles\4.1.1\VCTargetsPath.vcxproj]

              0 娑擃亣顒熼崨?
              1 娑擃亪鏁婄拠?

          瀹歌尙鏁ら弮鍫曟? 00:00:00.13


        Exit code: 1



      -- Configuring incomplete, errors occurred!
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Visual Studio 17 2022 x64 v144' generator - failure
      --------------------------------------------------------------------------------



      --------------------------------------------------------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      CMake Error at CMakeLists.txt:2 (PROJECT):
        Generator

          Ninja

        does not support platform specification, but platform

          x64

        was specified.


      -- Configuring incomplete, errors occurred!
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
      --------------------------------------------------------------------------------



      --------------------------------------------------------------------------------
      -- Trying 'Visual Studio 17 2022 x64 v143' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
      -- The C compiler identification is MSVC 19.43.34809.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is MSVC 19.43.34809.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done (2.6s)
      -- Generating done (0.0s)
      -- Build files have been written to: C:/Users/monke/AppData/Local/Temp/pip-install-gocaa_xq/opencv-python_7a53ab19a2534a50ac1eccf6c077ed29/_cmake_test_compile/build
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Visual Studio 17 2022 x64 v143' generator - success
      --------------------------------------------------------------------------------

      Configuring Project
        Working directory:
          C:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_skbuild\win-amd64-3.14\cmake-build
        Command:
          'D:\Program Files\CMake\bin\cmake.EXE' 'C:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\opencv' -G 'Visual Studio 17 2022' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\monke\AppData\Local\Temp\pip-install-gocaa_xq\opencv-python_7a53ab19a2534a50ac1eccf6c077ed29\_skbuild\win-amd64-3.14\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.14.0rc3 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\monke\AppData\Local\Temp\pip-build-env-da8tnaqp\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=D:\Python314\python3.14t.exe' '-DPYTHON_INCLUDE_DIR:PATH=D:\Python314\Include' '-DPYTHON_LIBRARY:PATH=D:\Python314\libs\python314t.lib' '-DPython_EXECUTABLE:PATH=D:\Python314\python3.14t.exe' '-DPython_ROOT_DIR:PATH=D:\Python314' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=D:\Python314\Include' '-DPython_LIBRARY:PATH=D:\Python314\libs\python314t.lib' '-DPython3_EXECUTABLE:PATH=D:\Python314\python3.14t.exe' '-DPython3_ROOT_DIR:PATH=D:\Python314' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=D:\Python314\Include' '-DPython3_LIBRARY:PATH=D:\Python314\libs\python314t.lib' -T v143 -A x64 '-DPYTHON3_EXECUTABLE=D:\Python314\python3.14t.exe' '-DPYTHON_DEFAULT_EXECUTABLE=D:\Python314\python3.14t.exe' -DPYTHON3_INCLUDE_DIR=D:/Python314/Include -DPYTHON3_LIBRARY=D:/Python314/libs/python314t.lib -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE:STRING=Release

      Not searching for unused variables given on the command line.
      CMake Deprecation Warning at CMakeLists.txt:25 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
      -- The CXX compiler identification is MSVC 19.43.34809.0
      -- The C compiler identification is MSVC 19.43.34809.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
      -- Detected processor: AMD64
      -- Found PythonInterp: D:\Python314\python3.14t.exe (found suitable version "3.14", minimum required is "3.2")
      -- Found PythonLibs: D:/Python314/libs/python314t.lib (found suitable exact version "3.14.0rc3")
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
          import numpy; print(numpy.get_include())
          ^^^^^^^^^^^^
      ModuleNotFoundError: No module named 'numpy'
      -- Performing Test HAVE_CXX_FP:PRECISE
      -- Performing Test HAVE_CXX_FP:PRECISE - Success
      -- Performing Test HAVE_C_FP:PRECISE
      -- Performing Test HAVE_C_FP:PRECISE - Success
      -- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
      -- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
      -- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
      -- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
      -- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
      -- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
      -- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
      -- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
      -- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
      -- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
      -- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_avx.cpp)
      -- Performing Test HAVE_CXX_ARCH:AVX - Success
      -- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
      -- Performing Test HAVE_CXX_ARCH:AVX2 - Success
      -- Performing Test HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp)
      -- Performing Test HAVE_CXX_ARCH:AVX512 - Success
      -- Performing Test HAVE_CPU_BASELINE_FLAGS
      -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
      -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
      -- Performing Test HAVE_CXX_W15240
      -- Performing Test HAVE_CXX_W15240 - Success
      -- Performing Test HAVE_C_W15240
      -- Performing Test HAVE_C_W15240 - Success
      -- Looking for malloc.h
      -- Looking for malloc.h - found
      -- Looking for _aligned_malloc
      -- Looking for _aligned_malloc - found
      -- Looking for fseeko
      -- Looking for fseeko - not found
      -- Looking for sys/types.h
      -- Looking for sys/types.h - found
      -- Looking for stdint.h
      -- Looking for stdint.h - found
      -- Looking for stddef.h
      -- Looking for stddef.h - found
      -- Check size of off64_t
      -- Check size of off64_t - failed
      -- Could NOT find AVIF (missing: AVIF_LIBRARY AVIF_INCLUDE_DIR)
      -- libjpeg-turbo: VERSION = 3.1.0, BUILD = opencv-4.12.0-libjpeg-turbo
      -- Check size of size_t
      -- Check size of size_t - done
      -- Check size of unsigned long
      -- Check size of unsigned long - done
      -- Looking for include file intrin.h
      -- Looking for include file intrin.h - found
      -- Looking for a ASM_NASM compiler
      -- Looking for a ASM_NASM compiler - NOTFOUND
      -- SIMD extensions disabled: could not find NASM compiler.  Performance will suffer.
      -- Looking for assert.h
      -- Looking for assert.h - found
      -- Looking for fcntl.h
      Copying files from CMake output
      Traceback (most recent call last):
        File "D:\Python314\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "D:\Python314\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:\Python314\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 280, in build_wheel
          return _build_backend().build_wheel(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
              wheel_directory, config_settings, metadata_directory
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          )
          ^
        File "C:\Users\monke\AppData\Local\Temp\pip-build-env-da8tnaqp\overlay\Lib\site-packages\setuptools\build_meta.py", line 410, in build_wheel
          return self._build_with_temp_dir(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~^
              ['bdist_wheel'],
              ^^^^^^^^^^^^^^^^
          ...<3 lines>...
              self._arbitrary_args(config_settings),
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          )
          ^
        File "C:\Users\monke\AppData\Local\Temp\pip-build-env-da8tnaqp\overlay\Lib\site-packages\setuptools\build_meta.py", line 395, in _build_with_temp_dir
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "C:\Users\monke\AppData\Local\Temp\pip-build-env-da8tnaqp\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 537, in <module>
        File "<string>", line 266, in main
        File "C:\Users\monke\AppData\Local\Temp\pip-build-env-da8tnaqp\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 704, in setup
          _classify_installed_files(
          ~~~~~~~~~~~~~~~~~~~~~~~~~^
              cmake_manifest,
              ^^^^^^^^^^^^^^^
          ...<8 lines>...
              cmake_install_dir,
              ^^^^^^^^^^^^^^^^^^
          )
          ^
        File "<string>", line 411, in _classify_installed_files_override
      FileNotFoundError: [Errno 2] No such file or directory: '_skbuild\\win-amd64-3.14\\cmake-install\\python\\cv2\\config-3.py'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> opencv-python

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