Problems with antivirus software and PyInstaller

Heads up! You've already completed this tutorial.

Virginia | 2021-05-01 20:45:45 UTC | #1

When I bundle my apps with PyInstaller, and in some cases Py2exe, antivirus software does not allow me to run the .exe files anymore. Crowdstrike prevents it from being opened, and Windows Defender flags it as malicious unless I specifically allow it. This appears to be due to some bad actors using PyInstaller to bundle malicious code. Do you have any suggestions for how to get around this issue? Is there another way to turn a Python program into an .exe file that will NOT be flagged by antivirus software?


1:1 Coaching & Tutoring for your Python GUIs project
Martin Fitzpatrick Python GUIs Coaching & Training
60 mins ($195) Book Now

1:1 Python GUIs Coaching & Training

Comprehensive code reviewBugfixes & improvements • Maintainability advice and architecture improvements • Design and usability assessment • Suggestions and tips to expand your knowledgePackaging and distribution help for Windows, Mac & Linux • Find out more.

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak
Martin Fitzpatrick

Problems with antivirus software and PyInstaller was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt. Martin founded PythonGUIs to provide easy to follow GUI programming tutorials to the Python community. He has written a number of popular https://www.martinfitzpatrick.com/browse/books/ on the subject.