I want to compile a python script to an executable file, and I’ve been doing so using python -m PyInstaller --onefile script.py
in PowerShell (Which works). However, I now want to create something that requires a GUI and I decided to use the TKinter module, but I need to suppress the console window so only my GUI window pops up. I saw somewhere I could use python -m PyInstaller --onefile --noconsole script.py
, but this returns error 225: “Operation did not complete successfully because the file contains a virus or potentially unwanted software.”
I’m not sure why, however if there’s a better way to create a GUI, I’m open to it because that is my end goal. Help is appreciated!