making an executable

Asked by chrisck117 on 2006-09-12

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:
2006-09-12
Last query:
2006-09-12
Last reply:
2006-10-24

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

chrisck117 (chrisck117) said : #2

Thank you raphael! Works great!

Hth :-)