MacOS深度学习数据标注软件labelimg安装

labelimg-深度学习数据标注软件安装

GitHub链接:https://github.com/tzutalin/labelImg/tree/master

macOS的installation(Recommended)

Python 3 + Qt5 (Recommended)

brew install qt  # Install qt-5.x.x by Homebrew
brew install libxml2

or using pip

pip3 install pyqt5 lxml # Install qt and lxml by pip

make qt5py3
python3 labelImg.py
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]

problems

zsh: command not found: brew

(后来发现是因为没装homebrew)

换用pip3,成功

执行指令

make qt5py3

运行结果:

pyrcc5 -o resources.py resources.qrc

make: pyrcc5: No such file or directory

make: *** [qt5py3] Error 1

搜了各种方法都解决不了


换用第三种installation方法:

Python 3 Virtualenv (Recommended)

Virtualenv can avoid a lot of the QT / Python version issues

brew install python3
pip3 install pipenv
pipenv run pip install pyqt5==5.13.2 lxml
pipenv run make qt5py3
python3 labelImg.py
[Optional] rm -rf build dist; python setup.py py2app -A;mv "dist/labelImg.app" /Applications

Note: The Last command gives you a nice .app file with a new SVG Icon in your /Applications folder. You can consider using the script: build-tools/build-for-macos.sh报错:

zsh: command not found: pipenv

查到了pipenv的网站:https://pipenv.pypa.io/en/latest/install/#installing-pipenv

按照installation指导下载homebrew:https://brew.sh

非常缓慢,几k到十几二十k的样子

尝试换国内镜像源

方法一参考:https://my.oschina.net/Rayn/blog/2876725

失败,brew_install脚本内容:

#!/usr/bin/ruby

STDERR.print <

换用方法二

方法二参考:https://www.raydbg.com/2019/Homebrew-Update-Slow/

(后来不用了因为两个电脑一关速度上到几百k了)

homebrew装好了也升级了

用homebrew装pipenv,成功

执行

pipenv run make qt5py3

结果:

pyrcc5 -o resources.py resources.qrc

make: pyrcc5: No such file or directory

make: *** [qt5py3] Error 1

还是这问题

后续参考方法:https://github.com/tzutalin/labelImg/issues/512#issuecomment-573830171

用brew又装一遍pyqt5

终于成功了(流下感动的泪水)

MacOS深度学习数据标注软件labelimg安装_第1张图片

你可能感兴趣的:(深度学习,python,macos)