I want to write a python plugin for QGIS 3.6.

Following the Guide I've installed the mentioned software Qt Creator and the OSGeo4W . There is written, that in the OSGeo4W Shell It would be possible then to call the pyrcc4 command.

Later in the tutorial done by "make pyrcc4 ..."

However, nothing works on my machine. No matter what I want to call, neither 'make' (like in Tutorial) nor 'pyrcc4' (like in some helps like this: Making 'make'-command work for compiling QGIS-plugins?) is a known command using the OSGeo4W Shell.


I've also tried this:

pyrcc4 command not recognized as internal or external command?

What am I doing wrong?

  • 2
    Did you follow the updated tutorial for QGIS 3?
    – Joseph
    Commented Mar 28, 2019 at 10:34
  • make sure to use the correct environment for pyqgis develeopment. On the console you'll need to execute py3_env.bat and qt5_env.bat. pyrcc5.bat for qgis3 is now in \apps\Python37\Scripts and py3_env.bat appends this to the path variable. Make isn't installed by default, it may be available as a osgeo4w package. Commented Mar 28, 2019 at 10:35
  • 1
    I think you should be using pb_tool now (after you run py3_env.bat)
    – Ian Turton
    Commented Mar 28, 2019 at 10:54
  • 1
    Thanks @Joseph. Somehow I did not find this on searching. This works well. When you answer it, I'll mark it correct :)
    – Malior
    Commented Apr 5, 2019 at 11:33
  • @Malior - Most welcome, glad it helped :)
    – Joseph
    Commented Apr 5, 2019 at 11:49

1 Answer 1


There is a new updated guide for QGIS 3 where you need to use Qt5 and Python 3 libraries. Therefore, assuming you have set the relevant environments and ran the batch files as described in the guide (and mentioned by @AndreasMüller and @IanTurton), you would need to replace:

pyrcc4 -o resources_rc.py resources.qrc


pyrcc5 -o resources.py resources.qrc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.