Python modules

Ben Finney ben+python at
Mon Nov 10 08:48:04 CET 2014

Steve Hayes <hayesstw at> writes:

> So if I want to run it on another computer, where do I look for the
> compiled executable program to copy?

You generally don't do that (the compiled files tend to be specific to
various aspects of the target platform). This is a way that i's
important to remember that most Python interpreters require compiled
Python code.

Instead, to have a Python program run on a different computer, the files
to copy are the *source* files — preferably, in the hierarchy those
files expect.

You can do this with ‘rsync’ <URL:> for simple

For more complex cases, look into Python's distribution and packaging
tools <URL:>.

For even more complex cases (e.g. where the Python code is only part of
a more diverse code base), look into deployment systems and operating
system packages.

 \         “When we pray to God we must be seeking nothing — nothing.” |
  `\                                                —Francis of Assisi |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list