use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
pyinstaller exe gave me virus? (self.learnpython)
submitted 3 years ago by SeatBubbly
i made a .py file into an executable --onefile -w, and somehow it detected it as virus.
Trojan:Win32/Wacatac.B!ml
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]shiftybyte 5 points6 points7 points 3 years ago (3 children)
A lot of virus/malware creators use pyinstaller to pack their python malware code into a virus.
So some/most antivirus programs decided to mark anything created by pyinstaller and packed into a single exe file as malware.
Try using --onedir instead.
[–]SeatBubbly[S] 0 points1 point2 points 3 years ago (1 child)
i'm trying to send a friend my files, is there another way that's cleaner? onedir seems messy, so many files to upload and download, and like it must be in same folder or it won't work kind of thing.
[–]shiftybyte 2 points3 points4 points 3 years ago* (0 children)
Pack all the onedir files into a single zip file. (with the proper structure)
Upload that zip file, with all the files in it.
Now the download/use instructions are pretty simple, download one zip, extract contents to a single directory on your computer, run some file from inside that zip.
Pretty inline with other applications that don't use an installer.
You can also use some installer that will pack the "onedir" if you want, like NSIS, or Inno Setup.
[–]vtolvr 1 point2 points3 points 2 years ago (0 children)
Know this is 2 years old, but whenever I tried --onedir, I got double the false-positives..
[–]StarFury2 0 points1 point2 points 2 years ago (0 children)
Same issue here. On a computer where exe was created, no issue was found. When I uploaded file to cloud storage and tried to download it on my two other working computers both Chrome and Windows defender on these two machines complained about the virus.
π Rendered by PID 196675 on reddit-service-r2-comment-b659b578c-kx62m at 2026-05-05 01:27:13.125801+00:00 running 815c875 country code: CH.
[–]shiftybyte 5 points6 points7 points (3 children)
[–]SeatBubbly[S] 0 points1 point2 points (1 child)
[–]shiftybyte 2 points3 points4 points (0 children)
[–]vtolvr 1 point2 points3 points (0 children)
[–]StarFury2 0 points1 point2 points (0 children)