Python Question About Compiling.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scheol Service

    #1

    Python Question About Compiling.

    ---------- Forwarded message ----------
    From: Scheol Service <scheols@gmail. com>
    Date: Nov 29, 2006 10:57 PM
    Subject: Python Question About Compiling.
    To: mailto:python-list@python.org


    Im just unsure on how to compile python code into .exe executionable
    files. Is there a simple way to do this?
  • Tim Roberts

    #2
    Re: Python Question About Compiling.

    "Scheol Service" <scheols@gmail. comwrote:
    >
    >Im just unsure on how to compile python code into .exe executionable
    >files. Is there a simple way to do this?
    Sort of. Python code is not compiled to machine language. Instead, it is
    compiled to an intermediate language that is then interpreted. That means
    that, at run-time, there must be an interpreter available.

    However, there are several packages that will gather up a copy of the
    interpreter, your script, and whatever scripts and libraries it might need,
    and pack them all into a .exe. To the end user, it looks like a compiled
    program. py2exe is one example.
    --
    Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.

    Comment

    Working...