From ea30bf97afb57835e809bac24478d238961ff3d5 Mon Sep 17 00:00:00 2001 From: Robert-Jan Bruintjes Date: Thu, 6 Sep 2018 12:51:11 +0200 Subject: [PATCH] Add requirements file for Python3-Qt5 installation. Update README with new instructions. --- README.rst | 10 +++++----- requirements-python3.txt | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 requirements-python3.txt diff --git a/README.rst b/README.rst index 1ab31dbe..13edd988 100644 --- a/README.rst +++ b/README.rst @@ -57,7 +57,7 @@ Python 3 + Qt5 .. code:: sudo apt-get install pyqt5-dev-tools - sudo pip3 install lxml + sudo pip3 install -r requirements-python3.txt make qt5py3 python3 labelImg.py 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 [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, 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 .. code:: - - + + brew install python3 pip install pipenv pipenv --three @@ -118,7 +118,7 @@ Open cmd and go to the `labelImg <#labelimg>`__ directory pyrcc4 -o resources.py resources.qrc python labelImg.py python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] - + Windows + Anaconda ^^^^^^^ diff --git a/requirements-python3.txt b/requirements-python3.txt new file mode 100644 index 00000000..787a7fda --- /dev/null +++ b/requirements-python3.txt @@ -0,0 +1,2 @@ +pyqt5==5.10.1 +lxml==4.2.4