Python to exe | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python to exe

When you create a exe from Pyinstaller or py2exe, all the modules are imported too? I mean, is it possible to run that exe without having installed the modules from the initial script, or even python?

5th Jan 2019, 12:28 PM
Dimitris K
Dimitris K - avatar
2 Answers
+ 1
There's an option to cram it all together in one file, then everything will be included and you don't need anything pre-installed. https://medium.com/dreamcatcher-its-blog/making-an-stand-alone-executable-from-a-JUMP_LINK__&&__python__&&__JUMP_LINK-script-using-pyinstaller-d1df9170e263
5th Jan 2019, 12:39 PM
HonFu
HonFu - avatar
+ 1
Thank you! so —one file does package every dependency
5th Jan 2019, 12:42 PM
Dimitris K
Dimitris K - avatar