Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

'pyrcc4' is not recognized #350

Closed
knightcube opened this issue Aug 15, 2018 · 3 comments
Closed

'pyrcc4' is not recognized #350

knightcube opened this issue Aug 15, 2018 · 3 comments

Comments

@knightcube
Copy link

I tried running the setup instructions in the README. When i tried running this line in cmd pyrcc4 -o resources.py resources.qrc , i get this error - 'pyrcc4' is not recognized as an internal or external command,operable program or batch file

  • OS:Windows
  • PyQt version:PyQt5

Extra Note
I went inside C:\Program Files\Python36\Lib\site-packages\PyQt5 and there are files named pyrcc_main.py, pyrcc.pyd but could not find pyrcc5. Probably this is causing the error. So i tried removing the import resource line from labelImg.py and everything works as expected but I dont know if it would cause some other error or not because I dont see resource being used anywhere in labelImg.py. Would it be a problem if I dont have that resource file?

How do i resolve this issue?

@Renart-fox
Copy link

Renart-fox commented Sep 21, 2018

It is asked to use PyQt4 in the installation section. Get the correct file according to your computer and python version then use pip to install from the downloaded file. The pyrcc4.exe file will be either on the path you mentioned or, like for me, in AppData\Local\Programs\Python\<your python version>\Lib\site-packages\PyQt4 . You'll have this to your path and then you're good to go.

Last edit: if you don't want to install pyqt4 use pyrcc5.exe instead of pyrcc4.exe. It's located here AppData\Roaming\Python\<your python version>\Scripts

@AwesomePeople
Copy link

Try with Cygwin64 terminal, success for me, it contain pyrcc4

@tzutalin tzutalin closed this as completed Dec 3, 2018
@iseegr8tfuldeadppl
Copy link

for me adding the pyrcc4 path to system environment variables made it work
C:\Users\BenBouali\AppData\Local\Programs\Python\Python35\Lib\site-packages\PyQt4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants