By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,267 Members | 1,800 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,267 IT Pros & Developers. It's quick & easy.

Python Question About Compiling.

P: n/a
---------- Forwarded message ----------
From: Scheol Service <sc*****@gmail.com>
Date: Nov 29, 2006 10:57 PM
Subject: Python Question About Compiling.
To: mailto:py*********@python.org
Im just unsure on how to compile python code into .exe executionable
files. Is there a simple way to do this?
Nov 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Scheol Service" <sc*****@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, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.