Virus warnings after trying to run .py program converted to an .exe file

Viewed 11453

I converted my .py file into an executable program and after trying to run it I got a virus alert from Avast that says that the program is infected with Win32:Malware-gen. The program works well when I disable Avast but that will not work in the long run. Also when I try to email the program through Gmail it blocks the attachment with another virus warning. The program is a simple python database made with tkinter.

Here is the code I used to convert it:

pyinstaller --onefile --windowed

Is there another code that I can use to convert it that would work better? Why do I get the alert?

Thank you

2 Answers
Related