HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.78k stars 6.31k forks source link

'pyrcc4' is not recognized as an internal or external command #121

Closed ManojPabani closed 7 years ago

ManojPabani commented 7 years ago

Hi,I am trying install LabelImg from source,I have installed PyQt4 and lxml now when runing this command: pyrcc4 -o resources.py resources.qrc getting this error:

'pyrcc4' is not recognized as an internal or external command, operable program or batch file. I tried to install 'pyrcc4' using: pip install pyrcc4 but it did'nt work.

tzutalin commented 7 years ago

Have you installed pyqt4-dev-tools?

MaxeeoveCR commented 7 years ago

Add your pyqt4 path to your system PATH.

Abby263 commented 7 years ago

How to add to system PATH ?

romponciano commented 7 years ago

@Abby263 @ManojPabani I tested with PyQt5. Just download it and add to system path "[path to anaconda]\Anaconda3\Library\bin". (check if exists a file named pyrcc5.exe on this folder. If not, then there is something wrong) Then execute: Open cmd and go to labelImg directory pyrcc5 -o resources.py resources.qrc
python labelImg.py

Done!

Tested on Anaconda3, PyQt5, Win10 x64

MahathirMonjurUtsho commented 6 years ago

use the command:

pyrcc4 -py3 -o resources.py resources.qrc

this solved the issue for me on windows using PyQt4 and python 3.6. Apparently, if you are using puthon3, we have to use the flag "-py3"

valleyzine commented 5 years ago

Riverbank does not support qt4.. where can i get the pyqt4-dev-tools(for pyrcc4) ?

vicflamenco commented 5 years ago

Win8.1, 64bit, Python 3.7.4, PyQt5 My solution was: pyrcc5 -o resources.py resources.qrc

And, in the labelimg.py file, change line: from libs.resources import * to: from resources import *

h2ochipdotcom commented 5 years ago

Im using PySide2 and Python 3.6.5 on Win 10. After searching my files in my python installation I found that the pyrcc4/5 file was not present but has been replaced. Here's the command I used to get the same result. pyside2-rcc -py3 -o ip2img.py ip2img.qrc