#๐ converting file type
30 messages ยท Page 1 of 1 (latest)
@mortal storm
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Hello, python is not designed to do that sadly
but you can do that by something called PyInstaller
if your code is complex , this might not work
python wasnt meant to be compiled, but it is still possible. You can use packages like nuitka (which i reccomend), pyinstaller, py2exe etc
saying it doesnt work doesnt help us
show us the error, and the command you used
and also converting to exe may cause specifically windows to flag your exe as a virus too
any error?
show a screen shot of it
is there any advantage of nuitka over pyinstaller
lesser chance of being flagged as virus mainly
and a bit more optimized than pyinstaller
but nuitka exes are much larger than pyinstaller's tho
is adaad.spec file you want to convert to exe?
Try using nuitka
pip install it
Oh
Alright
this
Its safe but the way the exe compiles your code is a similar pattern which viruses use
With python the only way is to get a signed certificate which cost about 300$-500$ a year or smt
Or use nuitka but there are still some chances of it getting flagged though
If you want to compile it, maybe try another programming language
Recompiling the pyinstaller runtime helps, and i'm sure someone already automated that somewhere
Pyinstaller include the python interpreter in the exe from what I know, and that get flagged often
Yeah, the default runtime was bundled with so many viruses that AVs just flag it now sometimes
I mean really, if you want to distribute your python program, just send the whole code
Or else just use some other languages
Most python applications I've seen tell you to install by pip anyway
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.