How do I make an executable?

Hi all,

I have a short code and I want to make an executable (*.exe) to give it to a
teacher as a present. I don't want to force the teacher to install python.
[School ends this week so I really put this off to the last moment.]

Please advise me as to how to do this. I think it should be really simple,
but ... I do not even know the first step.

Thank you,
-Belinda

Belinda Randolph wrote:

Hi all,

I have a short code and I want to make an executable (*.exe) to give it to a
teacher as a present. I don't want to force the teacher to install python.
[School ends this week so I really put this off to the last moment.]

Please advise me as to how to do this. I think it should be really simple,
but ... I do not even know the first step.

http://www.py2exe.org/

Christian

Also, for a nice GUI based way to use py2exe, see Andrea’s GUI2Exe:

http://xoomer.alice.it/infinity77/eng/GUI2Exe.html

Follow the simple example he gives on the page, set it to make just one .exe file, and remember the .exe file and a necessary .dll file to run it on Windows will show up in the dist directory under your Python directory. Just take those two files…check that they run on a computer that doesn’t have Python, and then give them to your teacher and hopefully it will run for him/her too.