making an executable

Asked by chrisck117

I work with python, but am completely new to Ubuntu. I am running Dapper and need to now in an easy to understand way, how do I make a .py into a linux executable. And then, how can I make that a Windows executable (.exe)?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Raphael J. Schmid
Solved:
Last query:
Last reply:
Revision history for this message
Raphael J. Schmid (raphael-j-schmid) said :
#1

Can tell you the first part of your question: you name your "example.py" just "example", add as its first line "#!/usr/bin/python" and make it executable ("chmod +x example"). Voila, a "Linux executable" :-).

As for the second part of your question, I found this using Google: http://www.py2exe.org/. Hopefully that is about what you're looking for?

Best regards and good luck,
Raphael

Revision history for this message
chrisck117 (chrisck117) said :
#2

Thank you raphael! Works great!

Revision history for this message
Raphael J. Schmid (raphael-j-schmid) said :
#3

Hth :-)