Anaconda 安装labelme, labelImg
前提:
安装anaconda, 激活自己需要安装环境,在该环境下安装:
1,安装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/
然后输入命令labelImg, 打开labelImg主窗口。
成功!
2, 安装labelme
pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install pyside2 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install labelme -i https://pypi.tuna.tsinghua.edu.cn/simple/
报错:
File "D:\Anaconda3\envs\mask_rcnn\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'
各种尝试,弄了2个小时,未能解决pip install labelme 的安装
最终舍弃anaconda虚拟环境, 直接本机安装python3.9.12, 并添加环境变量(其他的python环境变量删除)
然后直接:
pip install labelme
一步到位,其他的关联库会一键安装成功.
输入labelme, 即可打开labelme