@TOCBuilding wheel for opencv-python (pyproject.toml) … error
错误代码
Building wheel for opencv-python (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'e:\app\python3.6.6\python.exe' 'e:\app\python3.6.6\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\26086\AppData\Local\Temp\tmp5whnhzne'
cwd: C:\Users\26086\AppData\Local\Temp\pip-install-gzrh_b13\opencv-python_f505f2d7f5b6449bb57d37a031cc071c
Complete output (395 lines):
--------------------------------------------------------------------------------
-- 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.5 will be removed from a future version of
CMake.
解决方法
加对应版本号试试,比如3.6对应的下载 pip install opencv-python==3.4.2.16