Great question — answering as the UphillTech team:
I don't exactly know what's wrong with your PyInstaller Command but maybe you could try the Auto-Py-To-Exe tool. I find it really help full. It's a graphical user interface where you can select all options you want. You can install it with C:\Users\YourUser> pip install auto-py-to-exe and run it with C:\Users\YourUser> auto-py-to-exe I hope I could help you
Full answer by Jonathan: https://stackoverflow.stackexchange.com/a/68424375 (CC BY-SA 4.0).
Need it done for your business? UphillTech.