0

How can I turn my . Py file to . Exe

14th Jul 2020, 9:35 AM
Oladipupo Great
Oladipupo Great - avatar
2 odpowiedzi
+ 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