赞
踩
背景:学习关于深度学习的内容,发现网上LabelImg的内容,没有有Linux版本的,后来实践发现Linux下快速安装LabelImg_makefile:24: recipe for target 'qt5py3' failed ana-CSDN博客
于是就走上不归路。
1.切换conda环境,准备一个目录,包含图像文件夹,标注文件夹,标注说明文件
2.在这个项目文件夹内,git clone https://github.com/Ruolingdeng/labelImg.git,后面果断放弃在前面这里下载,https://github.com/HumanSignal/labelImg.git 在这里下载不会出现后面5的问题
3.下载工具 sudo apt-get install pyqt5-dev-tools \ conda install pyqt5==5.10 \ conda install lxml
4.安装完之后,在labelimg文件目录下,make qt5py3,然后python3 labelImg.py运行。
5.后面运行的时候发现报错
└─$ python3 labelImg.py
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
Traceback (most recent call last):
File "/home/linuxss/Desktop/label_dl/labelImg/labelImg.py", line 881, in scrollRequest
bar.setValue(bar.value() + bar.singleStep() * units)
TypeError: setValue(self, a0: int): argument 1 has unexpected type 'float'
zsh: IOT instruction python3 labelImg.py
labelimg 打框就闪退 TypeError: setValue(self, int): argument 1 has unexpected type ‘float‘-CSDN博客这里有两种解法,这里用第二种解决。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。