Python——labelImg安装

环境

anaconda3 + python 3.6

 库支持

PyQt5 、pyqt5_tools、lxml  (pip install PyQt5 )

下载源码

labelImg :https://github.com/tzutalin/labelImg

编译源码

1、进入源码的指定文件目录(cd C:softlabelImg)

2、编译(把Qt文件格式转为Python格式)

  pyrcc5 -o resources.py resources.qrc

3、运行labelImg.py

  python labelImg.py

  报错:ModuleNotFoundError: No module named 'libs.resources'

4、解决报错问题。复制 resources.py 文件至 libs 文件夹中 。

  然后再执行 python labelImg.py,成功打开 labelImg

  

 参考博客

    https://blog.csdn.net/qq_34809033/article/details/80589868

  https://blog.csdn.net/m0_38027013/article/details/93597145

原文地址:https://www.cnblogs.com/yxyun/p/14063671.html