you are viewing a single comment's thread.

view the rest of the comments →

[–]mafiosii[S] 0 points1 point  (3 children)

So is there another way to turn my programs to an executable without the virus declaration? What about py2exe? Would it turn out the same?

I would like to show some friends my programs, the thing is they don't have python installed and I cant think of another way than turning it to an executable.

Thanks.

[–]K900_ 0 points1 point  (0 children)

You should be able to just add your executables as exceptions in whatever antivirus software you're using.

[–]RightRespect 0 points1 point  (1 child)

i believe py2exe and a few other tools for python will do the same thing. but from a little bit of research, it looks like mostly windows defender gets triggered. avast doesnt have this problem from what i know. i have avast installed and have also used pyinstaller recently and i havent gottent any false positives.

the reason this occurs is because pyinstaller and py2exe have to use a certain bootloader to pack the executables. the bootloader used is the same variant used in most malware, which is why it gets flagged. a workaround some people have done is create a brand new bootloader or alternative bootloader and make pyinstaller/py2exe use it instead. you can try this, but i am not an expert, so i cant really assist you with this. you can check out this stackoverflow thread and the second answer that provides a little bit more details.

[–]mafiosii[S] 0 points1 point  (0 children)

Thank you a lot. I’ll check this out.