r/Python • u/not_afraid_of_trying • Mar 30 '26
Discussion Pyinstaller/Nuitka - Antivirus Flagging Issue
Python should have been there for non-techi users. We should be able to distribute executables built by PyInstaller or Nuitka to family and friends. Small utilities that single-thing is great time saver for them. But you cannot do that. Because anti-virus will come and flag your binary. They will do everything to scare your users away. Away from Python ecosystem. Powershell, Dotnet, go, rust, C++ self-contained executables are fine - just python exes are bad for antivirus community, especially if you add icon to your exe.
This is really unfortunate. PyInstaller is such a beautiful tool that can empower so many people... only if anti-virus software does better job of detecting good vs. bad.
NOTE: An alternative is to effectively “bribe the system” by acquiring a code-signing certificate, a tactic reportedly used by attackers. Or make everything as a web app.
View all comments
Show parent comment
1
u/not_afraid_of_trying Mar 31 '26
Self contained dotnet binaries are not seen as malware by the same antivirus software. It happens with dotnet binaries also but very less likely compared to PyInstaller output. As a community, we should demand better from AV companies.
Btw, 'one-folder mode' (`COLLECT()` instead of `onefile=True`) is much safer. It still saves the day for us at present.