Hello. I installed Qt Creator, made a mold, now there is a project in which, as I understand it, you need to somehow make py from the ui format. Tried through pyuic, but not an option since it is not simply installed via pip. enter image description here

At first I thought that my pip did not work correctly, but with pip, everything seems to be fine

Are there any other ways to convert ui to py, or can anyone know how to fix this error? I work on mac.

    1 answer 1

    pyuic5 is part of the PyQt library. Accordingly, if you have PyQt installed, then pyuic5 should be also.

    To install pyqt :

     pip install pyqt5 

    The default installer creates an entry_points script in the python executables directory, which is listed in the PATH .

    For check:

     which pyuic5 

    If the script is found, then you can run:

     pyuic5 -x foo.ui -o foo.py 
    • Thanks, it helped, although for some reason, without sudo at the beginning of the command, there were a lot of mistakes. In Pycharm, can you somehow screw it up so that without getting out of the project everything is converted and the rules work? - helsereet
    • Apparently, you have python installed in the usr -directory, so sudo is required to obtain the rights to write to the installer. I don’t know about charm, it’s better to ask a separate question. - mkkik