labelimg安装报错解决
在github上面下载labelimg源码运行可能会报错
labelimg源码链接:
labelimg
报错代码:
Traceback (most recent call last):
File "D:\code\labelImg-master\labelImg.py", line 33, in <module>
from libs.resources import *
File "D:\code\labelImg-master\libs\resources.py", line 19, in <module>
from . import DistlibException
ImportError: cannot import name 'DistlibException' from 'libs' (D:\code\labelImg-master\libs\__init__.py)
解决方式:
1.在labelimg目录下进入cmd输入以下命令用resources.qrc文件生成resources.py文件
pyrcc5 -o resources.py resources.qrc
2.将生成的resources.py文件复制到labelimg目录下libs目录里
3.如果还有以下这种类型报错,直接就pip install lxml(缺少其他模块也同理)
ModuleNotFoundError: No module named 'lxml'
版权声明:本文为weixin_46502301原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。