A
A
Afafks1231321321652020-05-14 15:10:40
Python
Afafks123132132165, 2020-05-14 15:10:40

How to compile to exe?

Is it possible to compile to exe inside the python. That is, in the program itself you press compile and your program should do it. And if not, in what languages ​​can this be done and how is it done? Is it difficult?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanya Hihi Haha, 2020-05-14
@ValarMayar

TYK

I
Igor Makhov, 2020-05-14
@Igorgro

os.system('gcc -c ...')
# или
os.system('pyinstaller ...')

N
Nazar Tropanets, 2020-05-15
@nazartropanets

pyinstaller
read the documentation, if you are too lazy to read, just install pyinstaller via pip and enter the following command in the directory of your python file:
pyinstaller filename.py
where filename is the name of your file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question