pythonpyqtpyqt4pyqt5pyuic

'pyuic5' is not recognized as an internal or external command


I am trying to convert ui file created by QTDesigner to py file. but i get the error: pyuic5 is not recognized as an internal or external command. I use anaconda 3, and tried all suggestions here:

C:/Program is not recognized ...related to pyuic5.

and i have seen here:

'Pyuic4' is not recognized as an internal external command.


Solution

  • for any one has this problem: the key is that in anaconda3 pyuic5.bat is in:

    Anaconda3\Library\bin

    also the Designer is here.

    so in cmd you must first cd to:

    Anaconda\Library\bin\
    

    then:

    pyuic5.bat -x filename.ui -o filename.py