C:\Users\Department\.qgis2\python\plugins\np>pyrcc4 -py2 resources.qrc -o resources.py
'pyrcc4' is not recognized as an internal or external command,
operable program or batch file.
How do I solve this problem?
C:\Users\Department\.qgis2\python\plugins\np>pyrcc4 -py2 resources.qrc -o resources.py
'pyrcc4' is not recognized as an internal or external command,
operable program or batch file.
How do I solve this problem?
You should use OSGEO Shell to run this command.
Go to Start Menu and search for OSGEO Shell, and then command prompt window will be open.
Now type cd C:\Users\Department.qgis2\python\plugins\np> in the shell, and press enter.
It will set the current directory to the plugin directory.
Now run your pyrcc4 command.
You can also follow detailed tutorial here
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
Python35 and PyQt4. This won't work with QGIS. QGIS 3 uses Qt5/PyQt5 and Python 3. QGIS 2 uses Qt4/PyQt4 and Python 2. So there is an incompatibility. You must switch to pyrcc5 with QGIS 3
– etrimaille
Apr 12 '19 at 12:51
pyrcc4.exeis found inC:\Program Files\QGIS 2.18\bin\. – Stefan Sep 13 '18 at 09:15