This code works fine when it's .py. The second i use pyinstaller with this "pyinstaller.exe --one-file --windowed --icon=app.ico BootcampManager.py" acts weird and does not do what it normally do. It's stuck "Updating status". None of the buttons works.
try replacing --onefile
with --onedir
:
pyinstaller.exe --onedir --windowed --icon=app.ico BootcampManager.py
if that doesnt work, then try converting from .py
to .pyw
and get rid of --windowed
pyinstaller.exe --onedir --icon=app.ico BootcampManager.pyw
EDIT
from my experience with pyinstaller
, when the exe is behaving "weird"
, its because all the libraries (DLLs
) are statically linked
into the executable, that is what --onefile
means.
when you link them dynamically
(--onedir
), they are imported at runtime or "when they are imported", so the executable doesnt need to load all the libraries after you open it. meaning that the executable will be faster
and more efficient
.