Python——labelImg安裝


環境

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM