opencv-python报错:Exception: Not found: 'python/cv2/py.typed'

发布时间 2023-08-29 09:26:37作者: Angry_Panda

报错:

self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-zsqslesq/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 535, in <module>
main()
File "setup.py", line 309, in main
cmake_source_dir=cmake_source_dir,
File "/tmp/pip-build-env-zsqslesq/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py", line 683, in setup
cmake_install_dir,
File "setup.py", line 448, in _classify_installed_files_override
raise Exception("Not found: '%s'" % relpath_re)
Exception: Not found: 'python/cv2/py.typed'
----------------------------------------
ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

 

 

 

=============================================