报错:
Traceback (most recent call last):
File “C:Users86186AppDataLocalProgramsPythonPython310libsite–packageslibscanvas.py“, line 530, in paintEvent
p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
TypeError: arguments did not match any overloaded call:
drawLine(self, l: QLineF): argument 1 has unexpected type ‘float‘
drawLine(self, line: QLine): argument 1 has unexpected type ‘float‘
drawLine(self, x1: int, y1: int, x2: int, y2: int): argument 1 has unexpected type ‘float‘
drawLine(self, p1: QPoint, p2: QPoint): argument 1 has unexpected type ‘float‘
drawLine(self, p1: Union[QPointF, QPoint], p2: Union[QPointF, QPoint]): argument 1 has unexpected type ‘float‘
Win 10 环境:Pycharm、anaconda、python3.10
(6条消息) Anaconda超详细安装教程(Windows环境下)_windows安装conda_菜鸟1号!!的博客-CSDN博客
1)、打开cmd
2)、执行下列命令
conda install python==3.9
3)、查看python版本,是否降版本成功
python —version 或 python -V
参考链接:(6条消息) [Win 10]Python降版本方法、Python3.9降至3.7_Bouble Q的博客-CSDN博客
2、将canvas.py文件 526、530、531行的float改为int。(找不到文件的话,直接搜索就行)
改前:
改后:
Unable to draw annotations on Windows · Issue #811 · heartexlabs/labelImg · GitHub
我改完以后即可正常框选,不过不一定适用你们的情况~~~
原文地址:https://blog.csdn.net/red_flag1921/article/details/130487444
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_21882.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!