Hi rajesh,
You can try the py2exe utility. It can convert a python source code .py to an .exe file. However, this .exe will come with a few other files and wouldn't work on a computer without Python installed.
Main Topics
Browse All TopicsHi i want to call an python prog from another program.
I want to know how to convert a program to exe .
while compiling it converts to an .pyc file.is it possible to convert to an .exe.
help me.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The .exe's which are created by py2exe are standalone and do not require the client (user running the exe) to have python installed. You can find out more about py2exe here: http://starship.python.net
And there is a very good tutorial for it here: http://www.pharscape.org/i
Business Accounts
Answer for Membership
by: hweberPosted on 2005-05-19 at 00:56:17ID: 14034211
Python programs cannot be compiled to an exe file, at least not in the classic style. You always need the interpreter to run the program. However, if the interpreter is installed on your system, you can simply call a Python program as is. Just call the .py or .pyc file.
modules.ph p?name=Dow nloads& d_o p=getit&li d=8
On Windows, your Python interpreter (python.exe) should be registered as the application for the .py and .pyc extensions. Also, pythonw.exe should be registered for the .pyw extension (so you can call Python programs without the interpreter opening a console window).
On Unix, all you need to do is add a line to the very top of your program starting with #!, followed by the path to the Python interpreter.
If you want to transport your application to another computer that doesn't have the interpreter installed and you don't want to install it there, you can use Gordon McMillers installer to package your programm together with the interpreter. The website seems to down at the moment, but I found a download link here:
http://paulbaranowski.org/