環境
anaconda3 + python 3.6
庫支持
PyQt5 、pyqt5_tools、lxml (pip install PyQt5 )
下載源碼
labelImg :https://github.com/tzutalin/labelImg
編譯源碼
1、進入源碼的指定文件目錄(cd C:\soft\labelImg)
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