1.电脑已经安装好好Anaconda3
打开Anaconda Prompt 创建python3.6的环境, 使用 conda create -n your_env_name python=X.X(2.7、3.6等)命令创建python版本为X.X、名字为your_env_name的虚拟环境。your_env_name文件可以在Anaconda安装目录envs文件下找到,输入以下代码:
conda create -n py36 python=3.6
2.创建完毕之后,进入刚创建的py36环境,输入以下代码:
conda activate py36
3.开始安装labelImg,输入以下代码:
pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install labelImg -i https://pypi.tuna.tsinghua.edu.cn/simple
4.然后在anaconda prompt中打开labelImg,输入以下内容:
labelImg
如图: