Created
May 9, 2018 18:14
-
-
Save nhancv/75d93389e86b4ae16eac489125bed788 to your computer and use it in GitHub Desktop.
Install labelImg on macOS High Sierra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| brew install python@2 | |
| pip install --upgrade virtualenv | |
| # clonde labelimg source | |
| rm -rf /tmp/labelImgSetup | |
| mkdir /tmp/labelImgSetup | |
| cd /tmp/labelImgSetup | |
| curl https://codeload.github.com/tzutalin/labelImg/zip/master --output labelImg.zip | |
| unzip labelImg.zip | |
| rm labelImg.zip | |
| # setup python3 space | |
| virtualenv --system-site-packages -p python3 /tmp/labelImgSetup/labelImg-py3 | |
| source /tmp/labelImgSetup/labelImg-py3/bin/activate | |
| cd labelImg-master | |
| # build labelImg app | |
| pip install py2app | |
| pip install PyQt5 lxml | |
| make qt5py3 | |
| rm -rf build dist | |
| python setup.py py2app -A | |
| mv "/tmp/labelImgSetup/labelImg-master/dist/labelImg.app" /Applications | |
| # deactivate python3 | |
| deactivate | |
| cd ../ | |
| rm -rf /tmp/labelImgSetup | |
| echo 'DONE' |
Author
nhancv
commented
May 9, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment