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
-2
u/not_afraid_of_trying Mar 31 '26
Yes, it's not Python's fault. Unsigned software triggers "Unknown Publisher" warning. This happens to indiscriminately. But binaries of PyInstaller are many times identified (falsely) as 'malware' - that's the problem. It is problem that antivirus software do not appreciate simplicity that PyInstaller offers, they should work bit harder to identify good vs bad binaries.
Python is not just a programing language. It's a philosophy. At the core of the Pythonic way is simplicity in how things are done. Little more directed efforts by Antivirus software would probably make the world a better place.