LabelImg的安装踩了许多坑,同样的方式,别人的电脑可以,自己的电脑装了好久,一直失败。最终在找数据集的时候找到了一个exe文件!解决时间:2021年4月14日09:35:39
成功又简单的方法:
github下载exe文件,存放到一个非中文的路径下。
参考博客:LabelImg来源
失败的方法:(别人用这个方法也可行)
Win10下安装LabelImg以及使用:为了不破坏spyder的使用,创建一个虚拟环境
如果已经安装了,则卸载掉所安装的包就可以!
pip uninstall pyqt5
创建LabelIMG 并使用:
conda create -n label 创建虚拟环境
activate LabelIMG
pip install --user pyqt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install --user pyqt5-tools -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install --user lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install --user labelme -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
LabelIMG(启动)
pip install --user pyqt -i https://pypi.tuna.tsinghua.edu.cn/simple/
labelme
activate labtool
WARNING: The scripts pylupdate5.exe, pyrcc5.exe and pyuic5.exe are installed in ‘C:\Users\范兵\AppData\Roaming\Python\Python36\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script labelImg.exe is installed in ‘C:\Users\范兵\AppData\Roaming\Python\Python36\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyqt5-plugins 5.15.2.2.1.0 requires pyqt5==5.15.2, but you have pyqt5 5.15.4 which is incompatible.
目前遇到的问题及其进展:
问题1:缺Qt插件
解决思路:
下载pyqt5 再安装
pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/
conda失败:conda失败文件修改