I am trying to convert my python program to exe using pyinstaller
My files name is main.py
I want no console, so i used -w
flag, but it is not working.
I am using the command pyinstaller --onefile -w main.py
It gives me 3 folders and one .spec
file as in the
attached picture.
Among these the dist folder if empty, build contains a main folder and __pycache__
has main.cpython-39
in it [which when I run gives a console(not required) along with the gui].
I am on windows 10 64-bit operating system with python 3.9.0 and pyinstaller 4.3
Any idea what i am doing wrong?
Thank You
It is giving the following error:
PyInstaller does not include a pre-compiled bootloader for your platform.
Link to code is here: https://github.com/EzyGrip/Calculator/blob/main/main.py
Edit: I just discovered that this error occurs only when I try to hide the console.