[Numpy-discussion] numpy issues at startup

Robert Kern robert.kern@gmail....
Tue Jun 2 13:24:05 CDT 2009


On Tue, Jun 2, 2009 at 13:19, Turner, Todd J Civ USAF AFMC AFRL/RXLMP
<Todd.Turner@wpafb.af.mil> wrote:
> I’m having some numpy problems when using the package with Python.  My admin
> installed numpy for me and we think it’s installed right.  When I’m in
> python and type ‘import numpy’ I get the “Running numpy from source
> directory”. It doesn’t matter which directory I launch python out of, it
> always gives me the same errors and then can’t do anything simple like
> numpy.ones() or any other routine.  Any ideas?  Do I have a path variable
> set wrong?

Please do the following:

$ python
>>> import numpy
>>> print numpy.__file__


That should show you where the numpy on your sys.path is. Double-check
that it is in the place you think it is. If so, move to that directory
(e.g. /usr/lib/python2.5/site-packages/numpy/) and show us what is in
there:

$ cd /usr/lib/python2.5/site-packages/numpy/
$ ls
....

-- 
Robert Kern

"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 Numpy-discussion mailing list