Skip to content
Sign upLog in
← Back to Community

How to make a program (PYTHON) into EXE??

Profile icon
Ekashrejaiswal

Guys i have made this following repl but unable to make it into EXE for user to use plz tell me how to do this??

Voters
Profile icon
CyberCat06
Profile icon
JeffLeadbeater
Profile icon
Ekashrejaiswal
Comments
hotnewtop
Profile icon
xxpertHacker

I had set up the Nuitka compiler on Repl months ago:
https://repl.it/@xxpertHacker/Python3#main.py.

Just write your code in main.py and treat it like normal, forget about the bash script that compiles it.

Profile icon
Coder100

you literally don't, python is an interpreted language, that means it executes the code instead of compiling to a binary.

Profile icon
xxpertHacker

@Coder100
Nuitka says otherwise.

Nuitka on Repl

Profile icon
RYANTADIPARTHI

It looks like pyinstaller is a good one to turn your files to .exe, but you say you got a virus. How about this link:

https://www.geeksforgeeks.org/convert-python-script-to-exe-file/

Profile icon
SamuelCheng

You would use either py2exe which has a GUI and command line option or pyinstaller which is command line app.

Profile icon
YodaCode

If you’re looking into compiling Python as an EXE, this link might help: https://datatofish.com/executable-pyinstaller/

Profile icon
YodaCode

@Ekashrejaiswal
Np. Tell me if it worked.

Profile icon
Ekashrejaiswal

@YodaCode
Dude but it triggered a virus on my PC dude it just wrong plz i dont want to lose it (my PC)

Profile icon
Ekashrejaiswal

@YodaCode
Let me show u a ss of my PC dude
Screenshot 2020-11-28 124746

Profile icon
Wumi4

@Ekashrejaiswal
What's the virus name? Have you tried to uninstall and install PyInstaller again? Have you searched for the virus? Please give us more info.

Profile icon
Ekashrejaiswal

@Wumi4
No but it triggered my PC as soon as i runned it it said that it was a trojan but idk i did the reinstall twice

Profile icon
Coder100

lmao

@Ekashrejaiswal

Profile icon
Coder100

thats not a virus, thats just your computer being overzealous xd

@Ekashrejaiswal

Profile icon
YodaCode

@Ekashrejaiswal
Use a noggin. It’s not a virus. Windows Defender just blocks everything :b

You don’t have to use it, but it’s your loss.