点击anaconda prompt
创建虚拟环境
进入虚拟环境
(base) C:\Users\admin>conda acticate YOLOCLC
添加python3.9
(YOLOCLC) C:\Users\admin>conda create -n py39 python=3.9
切换到python3.9环境
(YOLOCLC) C:\Users\admin>activate py39
下载spyder——pyqt5——pyqt5.tools——lxml
运行labelImg.py
(py39) C:\Users\admin>python "D:\CaiLiuchang\YOLO4\labelImg-master\labelImg-master\labelImg.py"
报错:没有lxml模块
ModuleNotFoundError: No module named 'lxml'
安装lxml
(py39) C:\Users\admin>pip install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple/
报错: 没有libs.resources
ModuleNotFoundError: No module named 'libs.resources'
移动sources.py文件到lib
(40条消息) Python labelImg工具安装及使用教程(亲测有效)_SpongeBob@USTC的博客-CSDN博客_labelimg 安装
#没有sources.py文件在labelImg目录下cmd输入命令
pyrcc5 -o libs/resources.py resources.qrc
报错:spyder版本问题
(40条消息) anaconda安装pyqt5_kuangshenbobo的博客-CSDN博客_anaconda安装pyqt5
conda基本命令
(40条消息) 怎样检查python环境是否安装好_anaconda如何查看并管理python环境_weixin_39890289的博客-CSDN博客