English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

Write an application in C using embedded python and execute the text file - python is a interpretter, not a compiler.

2007-07-26 00:38:31 · answer #1 · answered by Anonymous · 1 1

To convert your python file to an executable, you need the py2exe utility - see http://www.py2exe.org.

This will compile your script into an .exe file, and also zip up all the relevant libraries that you need to run the script on a computer without Python installed.

It's not magic, and there's still a fair bit of configuration involved, but it should be fairly easy to work out.

2007-07-26 15:55:13 · answer #2 · answered by Daniel R 6 · 0 0

I don't think you can compile python into an executable, you need another executable to serve as the hosting process.

2007-07-26 10:19:13 · answer #3 · answered by Pfo 7 · 0 0

Or perhaps you are looking for py2exe. Since Python does not convert to native instructions, py2exe bundles the interpreter.

2007-07-26 10:51:15 · answer #4 · answered by csanon 6 · 1 0

fedest.com, questions and answers