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

pyrcc5 not recognized #971

Open
ewerton-aquino opened this issue Dec 7, 2022 · 10 comments
Open

pyrcc5 not recognized #971

ewerton-aquino opened this issue Dec 7, 2022 · 10 comments

Comments

@ewerton-aquino
Copy link

pyrcc5 : O termo 'pyrcc5' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente.
No linha:1 caractere:1

  • pyrcc5 -o libs/resources.py resources.qrc
  •   + CategoryInfo          : ObjectNotFound: (pyrcc5:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    
    
  • OS: Win 10 (PyCharm 2022.2.1 (Community Edition))
  • Python: 3.10.8
  • PyQt version: 5.15.7
@RajatVardam
Copy link

RajatVardam commented Dec 8, 2022

Run this instead of that:
pyrcc5 -o resources.py resources.qrc

Make sure you revert back any changes made to the repo. This worked for me.

after that, you will get two files resources.py and resources.qrc. cut paste them into libs folder and run this:
python labelImg.py

@asifahmed1997bd
Copy link

Try to change the following code with your local setting.
F:\labelmg_master\labelImg\venv\Scripts\pyrcc5.exe -o F:\labelmg_master\labelImg\venv\Lib\site-packages\pip\_vendor\distlib\resources.py F:\labelmg_master\labelImg\resources.qrc

@asifahmed1997bd
Copy link

Try to change the following code with your local setting. F:\labelmg_master\labelImg\venv\Scripts\pyrcc5.exe -o F:\labelmg_master\labelImg\venv\Lib\site-packages\pip\_vendor\distlib\resources.py F:\labelmg_master\labelImg\resources.qrc

If anyone dont find this "pycrc5.exe" , then try to re install older version. inside a
Conda virtual environment reinstalling pyqt=5, worked for me.

@Jinder2050
Copy link

pyrcc5 : O termo 'pyrcc5' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente. No linha:1 caractere:1

  • pyrcc5 -o libs/resources.py resources.qrc

  •   + CategoryInfo          : ObjectNotFound: (pyrcc5:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
  • OS: Win 10 (PyCharm 2022.2.1 (Community Edition))

  • Python: 3.10.8

  • PyQt version: 5.15.7

Hello, check the folder C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and check if the pyrcc5.exe file is there, it is important that this file exists, finally check the path as in this video -> https://youtu.be/NPML38E6flQ

imagen_2023-03-31_120055779

@naveenvj25
Copy link

Pyrcc5.exe file is not seen along with pip.exe file in Python310\Scripts location. I tried to download PyQt many times. In both methods of downloading steps suggested for Windows (Anconda based and normal way), the error happens at the stage: pyrcc5 -o resources.py resources.qrc. It is because of the missing pyrcc5 file

@Jinder2050
Copy link

Pyrcc5.exe file is not seen along with pip.exe file in Python310\Scripts location. I tried to download PyQt many times. In both methods of downloading steps suggested for Windows (Anconda based and normal way), the error happens at the stage: pyrcc5 -o resources.py resources.qrc. It is because of the missing pyrcc5 file

Did you install python from the web or from the microsoft store?
Try installing pip install pyqt5-tools
Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

@naveenvj25
Copy link

Did you install python from the web or from the microsoft store?
Try installing pip install pyqt5-tools
Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Thanks Jinder..! The issues got solved, and now the installation is successful..! The error was in the path, the pyrcc5 file was actually hidden.

@capt-amlan-padhi
Copy link

Did you install python from the web or from the microsoft store?
Try installing pip install pyqt5-tools
Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Thanks Jinder..! The issues got solved, and now the installation is successful..! The error was in the path, the pyrcc5 file was actually hidden.

Hi naveen, I too can't find my pyrcc5 file. How to solve it??

@naveenvj25
Copy link

Did you install python from the web or from the microsoft store?
Try installing pip install pyqt5-tools
Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Thanks Jinder..! The issues got solved, and now the installation is successful..! The error was in the path, the pyrcc5 file was actually hidden.

Hi naveen, I too can't find my pyrcc5 file. How to solve it??

Watch the Youtube video suggested above and give the correct location. May be the file is hidden

@themeowsketeer
Copy link

Pyrcc5.exe file is not seen along with pip.exe file in Python310\Scripts location. I tried to download PyQt many times. In both methods of downloading steps suggested for Windows (Anconda based and normal way), the error happens at the stage: pyrcc5 -o resources.py resources.qrc. It is because of the missing pyrcc5 file

Did you install python from the web or from the microsoft store? Try installing pip install pyqt5-tools Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Hello. I have followed all of the steps but the file is still not recognizable. Any advices on how I should fix this further? the pyrcc5 is there but the prompt does not recognize it.

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

7 participants