Hi all....
How can I create .exe format in python???????
I mean how to change .py to .exe ????

please reply as fast as possible

Recommended Answers

All 7 Replies

You have to use module py2exe.
This module is a packer that puts your code, all needed modules and the Python interpreter into a self-unpacking .exe file.

Use google to find it, it's a free download

and GUI2exe if you a lazy like me to use setup.py. Gavana did it for us :)

Pyinstaller is also a binary compiling package for python. It may be easier to use than Py2Exe, but I would highly recommend using py2Exe.

Pyinstaller is also a binary compiling package for python. It may be easier to use than Py2Exe, but I would highly recommend using py2Exe.

GUI2exe handles them all. You can install them all and choose them on fly ;)

I have Gui2exe installed already but haven't quite used it due to a problem.
The problem is - in "gui"window of gui2exe the locations for python modules does not accept the given modules separated by commas
i.e.(tkinter,zipfile,fnmatch...)
Is this the right technique ?

The problem is - in "gui"window of gui2exe the locations for python modules does not accept the given modules separated by commas
i.e.(tkinter,zipfile,fnmatch...)
Is this the right technique ?

You dont use comma in gui2exe,if you want to include/exclude moduls push add button and write the name.
Then it will be put in a list in the setup script.
So if you want to add tkinter push add button and write name.
Then push add button and new name...and so on.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.