Relative Content

Tag Archive for pythonpowershellcompilation

“Unwanted software” error when compiling a python script one way yet not another way?

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.”