报错:
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
=============================================
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/ opencv_python-4.5.4.60-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
=============================================
参考:
https://blog.csdn.net/m0_74089435/article/details/131493585
=============================================
标签:Exception,python,setup,py,opencv,报错,build,line From: https://www.cnblogs.com/devilmaycry812839668/p/17663903.html