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

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.
5th Jan 2019, 12:39 PM
HonFu - avatar
+ 1
Thank you! so —one file does package every dependency
5th Jan 2019, 12:42 PM
Dimitris K
Dimitris K - avatar