That's not a bug in PyInstaller, it's malware scanners being dumb. You'll have the same problem with Nuitka if you use the --one-file mode. But Nuitka also has a --standalone mode, where it just places the executable and DLLs in a folder. That shouldn't cause problems.