Add requirements file for Python3-Qt5 installation.

Update README with new instructions.
This commit is contained in:
Robert-Jan Bruintjes 2018-09-06 12:51:11 +02:00 committed by darrenl
parent c88eb28e7c
commit ea30bf97af
2 changed files with 7 additions and 5 deletions

View File

@ -57,7 +57,7 @@ Python 3 + Qt5
.. code:: .. code::
sudo apt-get install pyqt5-dev-tools sudo apt-get install pyqt5-dev-tools
sudo pip3 install lxml sudo pip3 install -r requirements-python3.txt
make qt5py3 make qt5py3
python3 labelImg.py python3 labelImg.py
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
@ -84,14 +84,14 @@ Python 3 + Qt5 (Works on macOS High Sierra)
python labelImg.py python labelImg.py
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
**NEW** Python 3 Virtualenv + Binary **NEW** Python 3 Virtualenv + Binary
This avoids a lot of the QT / Python version issues, This avoids a lot of the QT / Python version issues,
and gives you a nice .app file with a new SVG Icon and gives you a nice .app file with a new SVG Icon
in your /Applications folder. You can consider this script: build-tools/build-for-macos.sh in your /Applications folder. You can consider this script: build-tools/build-for-macos.sh
.. code:: .. code::
brew install python3 brew install python3
pip install pipenv pip install pipenv
pipenv --three pipenv --three
@ -118,7 +118,7 @@ Open cmd and go to the `labelImg <#labelimg>`__ directory
pyrcc4 -o resources.py resources.qrc pyrcc4 -o resources.py resources.qrc
python labelImg.py python labelImg.py
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
Windows + Anaconda Windows + Anaconda
^^^^^^^ ^^^^^^^

2
requirements-python3.txt Normal file
View File

@ -0,0 +1,2 @@
pyqt5==5.10.1
lxml==4.2.4