[Numpy-discussion] "import numpy" is slow
David Huard
david.huard@gmail....
Thu Jul 31 12:56:28 CDT 2008
On Thu, Jul 31, 2008 at 1:12 PM, Christopher Barker
<Chris.Barker@noaa.gov>wrote:
> David Cournapeau wrote:
> > Christopher Barker wrote:
> >> On my OS-X box (10.4.11, python2.5, numpy '1.1.1rc2'), it takes about 7
> >> seconds to import numpy!
> >
> > Hot or cold ? If hot, there is something horribly wrong with your setup.
>
> hot -- it takes about 10 cold.
>
> I've been wondering about that.
>
> time python -c "import numpy"
>
> real 0m8.383s
> user 0m0.320s
> sys 0m7.805s
>
> and similar results if run multiple times in a row.
>
> Any idea what could be wrong? I have no clue where to start, though I
> suppose a complete clean out and re-install of python comes to mind.
>
Is only 'import numpy' slow, or other packages import slowly too ?
Are there remote directories in your pythonpath ?
Do you have old `eggs` in the site-packages directory that point to remote
directories (installed with setuptools developp) ?
Try cleaning the site-packages directory. That did the trick for me once.
David
> oh, and this is a dual G5 PPC (which should have a faster disk than your
> Macbook)
>
>
> -Chris
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chris.Barker@noaa.gov
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080731/49ed1e49/attachment.html
More information about the Numpy-discussion
mailing list