How to open python programs without installing python on another pc

I need to send a python program to someone, but they don't have python, is there a way to compile the python program and open it like a normal computer program.

Any help would be appreciated

+3


source to share


1 answer


Yes, you can use cxfreeze. The docs are here .

The gist of these is that you need to create a distutils configuration file to specify which modules are needed and any other resources to be included. Then you can run python setup.py build

to build your build app.



As mentioned in the docs, you can use something like inno setup to create a file .exe

from the cxfreeze output.

It's been a while since I've used it, but I can look back on how to set it up if you need more help getting it started.

+2


source







All Articles