Answer the question
In order to leave comments, you need to log in
How to convert .ui to .py using pyuic (PyQt5)?
There is an interface file testUI.ui. Pyqt5 and in the Python36-32\Lib\site-packages folder there is a uic folder
When trying to enter the console from the site-packages folder and from the uic folder (there is an interface file in both folders) pyuic5 testUI -o testUI.py
Gives
C:\Users\Alexey\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5\uic>pyuic5 testUI.ui -o testUI.py
""C:\Users\Alexey\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6\python"" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
C:\Users\Alexey\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5>pyuic5 testUI.ui -o testUI.py
""C:\Users\Alexey\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6\python"" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
C:\Users\Alexey\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5\uic\pyuic.py -help
Traceback (most recent call last):
File "C:\Users\Alexey\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5\uic\pyuic.py", line 28, in <module>
from .driver import Driver
ModuleNotFoundError: No module named '__main__.driver'; '__main__' is not a package
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question