首页 > 编程语言 > opencv-python报错:Exception: Not found: 'python/cv2/py.typed'

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

时间:2023-08-29 09:34:17浏览次数:65  
标签:Exception python setup py opencv 报错 build line

报错:

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

 

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

相关文章

  • numpy转pillow图像报错TypeError: Cannot handle this data type: (1, 1, 134), <f4 Ty
    报错TypeError:Cannothandlethisdatatype:(1,1,134),<f4,我猜你很可能是在将array数据转换成图片,使用的是函数Image.fromarray()而这个函数处理的是uint8类型,所以你可以使用:print(image.dtype)查看数据类型,不是uint8格式就转换成uint8:Image.fromarray(np.uint8(ima......
  • python+playwright 学习-80 v1.37版本新增--full-page-screenshot 用例失败截长图
    前言--full-page-screenshot参数是pytest-playwright在使用,在失败时是否进行完整页面截图。默认情况下,仅捕获视口。需开启--screenshot开关(默认:off).用例失败截图环境准备:1.安装playwright最新v1.37版本2.安装pytest-playwright0.4.2版本用例示例fromplaywright.......
  • python小知识
    Python小知识浮点数注意事项#浮点数精度问题fromdecimalimportDecimalprint(0.1+0.1)#0.2print(0.1+0.2)#0.30000000000000004print(Decimal("0.1")+Decimal("0.2"))#0.3,注意:参数是字符串jsonpath提取数据#pipinstalljsonpathfromjsonpathimp......
  • python+selenium+pytest-(5)_yaml文件
    导包importyamlelement.yamllogin:safe:'#element'link:'#element'user:['#element','user1','user2','user3']password:['#element','pw']auth_code:'element......
  • python代码画爱心❤(海龟)
    importturtle#设置标题turtle.title("蜜蜂的程序")turtle.st()#显示海龟print(turtle.position())turtle.color("red","pink")turtle.begin_fill()#填充前turtle.left(90)turtle.penup()turtle.pendown()turtle.circle(60,180)turtle.circle(18......
  • python的print和input的使用
    input前面引号里面包含的字符串会先调用print语句#1.使用input函数分别获得用户输入的个人信息#2.个人信息包含姓名,年龄,性别,爱好,职业信息等#3.使用print函数将输入的结果打印出来name=input("请输入姓名:")age=input("请输入年龄:")sex=input("请输入性别:")hobby=inp......
  • python中计算dna序列的GC含量
     001、对G、C计数进行统计[root@pc1test01]#lsa.fatest.py[root@pc1test01]#cata.fa##测试DNA序列>Rosalind_6404CCTGCGGAAGATCGGCACTAGAATAGCCAGAACCGTTTCTCTGAGGCTTCCGGCCTTCCCTCCCACTAATAATTCTGAGG>Rosalind_5959CCATCGGTAGCGCATCCTTAGTCCAATTAAG......
  • python+playwright 学习-79 设置全局导航超时和全局查找元素超时
    前言playwright默认全局的导航时间是30秒,查找元素超时也是30秒,有以下几个方法设置全局超时时间:browser_context.set_default_navigation_timeout()browser_context.set_default_timeout()page.set_default_navigation_timeout()page.set_default_timeout()导航超时设置......
  • kali linux上webgoat搭建报错解决
    从 https://github.com/WebGoat/WebGoat/releases 下载最新的WebGoat版本(可以直接下载源码或者git下载)gitclonehttps://github.com/WebGoat/WebGoat/WebGoat.git网络问题连接失败可以通过直接下载源码把下载链接放到加速网站(https://ghproxy.com/)https://git......
  • python中输出键最大、最小的项
     001、输出键最大的项a、>>>dict1={"c":30,"a":40,"b":80,"d":20,"e":60}>>>dict1{'c':30,'a':40,'b':80,'d':20,'e':60}>>&......