+ 5

Running python scripts

Is there a way to compile python scripts into exe or to run them on a pc without python interpreter installed

20th Jul 2017, 6:01 AM
LordGhostX - avatar
2 Answers
+ 8
It is possible to build an exe with py2exe, pybuilder, cx_freeze or nuitka, for example. However, all those will not really "compile" it, but rather wrap it into exe with *the whole Python attached*. The Python environment and all necessary modules will be packed into the exe file or into a folder structure with an executable somewhere in it. It can be run on any machine then (provided the 32/64 bit compatibility), but the size of the package can be really big (30-40 MB) is not surprising.
20th Jul 2017, 6:29 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
Thanks i found out already and have downloaded it before I read this post, thanks by the way 👍
20th Jul 2017, 6:48 AM
LordGhostX - avatar