Friday, 10 November 2017

qgis - 'pyrcc5' is not recognized as an internal or external command



I installed Qgis 3.0 on windows 10. I get this error everytime i run the pyrcc4 or pyrcc5 command:


'pyrcc4' is not recognized as an internal or external command,

Even if I find a place with a pyrcc4.exe file or a place with apyrcc5.bat file and add the path to the environment variables I get the same error. In the previous installation of osgeo4w i had a pyqtdev folder or something similar appear I think it was on C/. Was there supposed to be such a folder, do I need to download pyqt separately?



Answer



Try running a batch file with the following:


@echo off
call "C:\Program Files\QGIS 3.0\bin\o4w_env.bat"
call "C:\Program Files\QGIS 3.0\bin\qt5_env.bat"
call "C:\Program Files\QGIS 3.0\bin\py3_env.bat"


@echo on
pyrcc5 -o resources.py resources.qrc

either place the batch file in your directory with resources.py or type in an absolute path.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...