Should I Share My Python Program as an .exe or with Source Code?
Asked by
HARBOR RULES
I've created a simple Python program that allows me to use speech-to-text functionality to send messages in a sim racing game chat. I'm thinking about sharing it with others, but I'm concerned if I should provide an executable (.exe) file. I'm worried it might be flagged as a virus, causing people to be hesitant. Instead, I was considering just sharing the .py file directly and asking users to install Python. To make it easier, I've included a .bat file that automatically installs the necessary modules and another one that launches the program in the command prompt. However, I'm not sure if it's odd to ask others to install Python. I also considered using a portable version of Python to avoid installation issues. What do you think is the best approach?
Answers
Why not do both? You could set up releases on GitHub or another version control system. That way, users can download either your source code or a bundled .exe file. Just search for "GitHub releases" for more on how to do that! It's a user-friendly option for everyone.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Fjell: That's a good idea! I hadnโt considered GitHub before. Is it really that simple? And is my concern about the .exe being flagged as a virus valid?