How can I turn my . Py file to . Exe | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How can I turn my . Py file to . Exe

14th Jul 2020, 9:35 AM
Oladipupo Great
Oladipupo Great - avatar
2 Respostas
+ 4
Python is not designed to be compiled... And turning a '.py' file into a '.exe' file is basically embed the python interpreter, your script and all dependencies into one executable. So there is no advantage of converting it to an executable file. If you want to share your code, tell the receivers to install python... just like you need to install Java to run '.jar' files. However, if you really need to to it, then use auto-py-to-exe, which is a GUI tool based on pyinstaller.
14th Jul 2020, 10:25 AM
ThƩophile
ThƩophile - avatar
14th Jul 2020, 9:44 AM
Slick
Slick - avatar