I recently used Wine and PyInstaller to compile a Python script into an executable (.exe) file on my Linux laptop. However, when I try to download this .exe file to a Windows PC, Windows Defender keeps flagging it as a Trojan malware: "Trojan:Win32/Wacatac.C!ml". I'm curious if anyone else has dealt with this and if there are any solutions.
1 Answer
Yeah, I've faced similar issues! One workaround is to avoid packaging everything into a single file. If you let PyInstaller create a folder structure instead, it tends to get flagged less often. Another option is getting it certified by Microsoft, but that can take time and cost money. For sharing your script, I recommend the folder method—it's not the sleekest, but it works!
Totally with you on that! Dealing with Windows can be such a headache.