Numpy and cPickle
Robert Kern
robert.kern at gmail.com
Sun Apr 16 01:17:23 EDT 2006
Mr. M wrote:
> Somehow, the bug does not show up any more. I believe it was due to the
> numpy version that is fetched by cPickle. Is there any way to control
> (or even determine), which library version cPickle grabs for unpickling
> a numpy array (numpy, scipy, etc)?
You can import the appropriate module first. Then it will be in sys.modules and
be picked up during unpickling. You may have to do some sys.path manipulation if
you have more than one version lieing about on your filesystem.
--
Robert Kern
robert.kern at gmail.com
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list