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/zaphodikus Apr 01 '26
Alternately, if you don't want to do too much lifting use setuptools https://setuptools.pypa.io/en/latest/userguide/index.html
All it requires is that your target machine has Python installed already - that's easy, and it's portable on mac and linux too. Ubuntu comes with Linux quite often lately and all macs come with python. I mean, you are asking people to run a binary you send them anyway. And also that you learn about python packages and python projects and how to correctly package. You do want your code to be robust and reliable, so you will need to know this stuff at some point anyway.
Also worth having a look around the documentation, really more widely example https://docs.python.org/3/library/main.html