#๐Ÿ”’ converting file type

30 messages ยท Page 1 of 1 (latest)

olive tendonBOT
#

@mortal storm

Python help channel opened

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.

digital sparrow
#

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

cerulean sail
#

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

craggy epoch
cerulean sail
#

lesser chance of being flagged as virus mainly

#

and a bit more optimized than pyinstaller

cerulean sail
#

is adaad.spec file you want to convert to exe?

#

Try using nuitka

#

pip install it

#

Oh

#

Alright

cerulean sail
#

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

sharp ether
#

If you want to compile it, maybe try another programming language

rancid plover
#

Recompiling the pyinstaller runtime helps, and i'm sure someone already automated that somewhere

sharp ether
#

Pyinstaller include the python interpreter in the exe from what I know, and that get flagged often

rancid plover
#

Yeah, the default runtime was bundled with so many viruses that AVs just flag it now sometimes

sharp ether
#

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

olive tendonBOT
#
Python help channel closed

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.