Installed python 2.5 over 2.4 and lost installed packages

james at reggieband.com james at reggieband.com
Mon Apr 28 15:46:50 EDT 2008


On Apr 27, 8:42 pm, Mike Driscoll <kyoso... at gmail.com> wrote:
> On Apr 27, 8:15 am, ja... at reggieband.com wrote:

> > I recently updated os x from python 2.4 to 2.5 (from python.org) and
> > in doing so I lost my old python path entries.

> > So what is the right thing to do in this situation?
> > Is cp'ing the files from one place to another safe or advisable?

> As long as the Python extensions or packages are pure ones, then
> copying them over shouldn't hurt anything. If you have some that have
> C/C++ links (such as PIL or pywin32), then you'll need to reinstall
> those manually.

I tried that and the C extensions burned me.  Syck (for YAML) and
mercurial (I think ... there were  at least 2 problems) posted
warnings or bailed out with errors.  Looks like I will delay until I
have the time and energy to chase all my dependencies.  Perhaps once
my server (Ubuntu) moves to 2.6 I'll update my Mac at the same time.

>From now on I am storing my install packages somewhere accessible
instead of deleting them once I'm done with them.  I wish I could
generate a manifest of installed packages to make upgrading easier.

Cheers,
James.



More information about the Python-list mailing list