Save
Then from Scripts folder run same command.
You can also load
FirstApp.ui
in folder where pyuic5.exe
is placed PyQt5\Scripts
folder.Then from Scripts folder run same command.
You can also load
ui
file straight in,then is no need to convert.from PyQt5 import uic, QtWidgets import sys class Ui(QtWidgets.QDialog): def __init__(self): super().__init__() uic.loadUi('FirstApp.ui', self) self.show() if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) window = Ui() sys.exit(app.exec_())