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 <<EOS
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

EOS

Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'

换用方法二

方法二参考: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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值