在GitHub上下载对应工程label-master,用pycharm打开
在anaconda配置虚拟环境(labelimg-master)后,在Anaconda prompt输入:
activate labelimg-master
进入环境
然后下载pyqt5工具包
conda install pyqt=5
继续按照教程输入:
pyrcc5 -o resources.py resources.qrc
一直在报错!!
E:\Anaconda\lib\site-packages\PyQt5\pyrcc_main.py: File does not exist ‘resources.qrc’
后改为绝对路径:
pyrcc5 -o "D:\2022nanke\09\labelImg-master\labelImg-master\ resources.py" "D:\2022nanke\09\labelImg-master\labelImg-master\resources.qrc"
成功将qrc文件转化为py文件
再把resources.py 拉进libs文件夹,运行labelimg.py
运行成功!!!