Moving Python between machines

Stefan Schwarzer s.schwarzer at ndh.net
Thu Jan 3 14:24:27 EST 2002


Hello Doug

Martin von Loewis wrote:
> > I'd like to move that installation over to another Solaris 2.6 Sparc
> > machine so I can use Python2.2 over there, how can I do this easily?
> 
> Copy <prefix>/bin/python and <prefix>/lib/python<version>
> (recursively), to <destprefix>/bin/python and
> <destprefix>/lib/python<version>.
> 
> It would be good if prefix and destprefix are the same, but they do
> not need to be. If they are different, <prefix>/lib/python<version>
> should not exist on the target machine.

I think if the prefixes differ, you will have to set PYTHONHOME to the
new prefix and PYTHONPATH to a list of the paths where the modules are
now located.

Stefan



More information about the Python-list mailing list