I tried using py -m PyInstaller --onefile filename.py
to compile my program. It did compile; but after running it, it opened a black console and quickly closed it before executing anything.
I have tried plenty of different methods, but none of them worked. Also sometimes it compiles the file, without executing it.
I tried using py -m PyInstaller --onefile filename.py
.
I thought that after opening the .exe file the program will execute.
I'm using the latest version of Windows 11.