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

报错:

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

 

 

 

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

 

Links for opencv-python

 

opencv_python-4.5.4.60-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

 

 

 

 

安装命令:

pip install opencv-python==4.5.4.60  -i https://pypi.tuna.tsinghua.edu.cn/simple/

 

 

 

 

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

 

 

参考:

https://blog.csdn.net/m0_74089435/article/details/131493585

 

 

 

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

 
 
 

 

posted on 2023-08-29 09:24  Angry_Panda  阅读(1921)  评论(0编辑  收藏  举报

导航