[Tutor] compilte python to an executable file.

Kent Johnson kent37 at tds.net
Mon Mar 27 18:36:31 CEST 2006


Keo Sophon wrote:
> On Monday 27 March 2006 10:38, Ars wrote:
> 
>>>On 27/03/06, Keo Sophon <keosophon at khmeros.info> wrote:
>>>
>>>>hi all,
>>>>
>>>>Does anyone know how to compile a python filename.py to an executable
>>
>>file?
>>
> 
> 
> I don't know how python creates executable file. The purpose is to have the 
> program written in Python can run on Linux and Windows and Mac (if possible).

A well-written Python program (.py file) is very portable across Linux, 
Windows and Mac, if the target machine has Python installed. There is no 
executable format that will run unchanged on these three platforms, you 
have to build three executable files.

Kent



More information about the Tutor mailing list