I would like compile python project to one exe file.
I installed python 3.6, pygt5 and pyinstaller.
I can run script with python interpreter using command 'python name.py' and compile scritpt to exe file using command 'pyinstaller --onefile name.py'
But unfortunettly, when compiled file (exe file) is ran (by mouse click), also the console window appears.
.
I installed python 3.6, pygt5 and pyinstaller.
I can run script with python interpreter using command 'python name.py' and compile scritpt to exe file using command 'pyinstaller --onefile name.py'
But unfortunettly, when compiled file (exe file) is ran (by mouse click), also the console window appears.
#!/usr/bin/python3 # -*- coding: utf-8 -*- from PyQt5.QtWidgets import QApplication, QWidget class Calculator(QWidget): def __init__(self, parent=None): super().__init__(parent) self.interfejs() def interfejs(self): self.resize(300, 100) self.setWindowTitle("Simple calculator") self.show() if __name__ == '__main__': import sys app = QApplication(sys.argv) window = Calculator() sys.exit(app.exec_())It is application with gui and I would like open only gui (without cmd window).
.