Add requirements file for Python3-Qt5 installation.
Update README with new instructions.
This commit is contained in:
parent
c88eb28e7c
commit
ea30bf97af
10
README.rst
10
README.rst
@ -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
2
requirements-python3.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pyqt5==5.10.1
|
||||||
|
lxml==4.2.4
|
||||||
Loading…
x
Reference in New Issue
Block a user