[SciPy-user] Installing numpy

Robert Kern robert.kern@gmail....
Sat Nov 17 23:41:59 CST 2007


David Arnold wrote:
> All,
> 
> Mac OS X 10.4.11 PPC.
> 
> Installed python from this:
> 
> http://www.python.org/ftp/python/2.5.1/python-2.5.1-macosx.dmg
> 
> Installation finishes with "There were errors installing the  
> software. Please try installing again." Installing again makes no  
> difference, but Python appears to be running:
> 
> darnold $ python
> Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
> [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>>
> 
> Downloaded numpy from:  http://downloads.sourceforge.net/numpy/ 
> numpy-1.0.4.tar.gz?use_mirror=internap
> 
> After unpacking and changing directories, simply did this:
> 
> numpy-1.0.4 $ python setup.py install
> 
> Seem to finish OK. But testing according to README.txt resulted in:
> 
> numpy-1.0.4 $ python -c 'import numpy; numpy.test()'
> Running from numpy source directory.
> Traceback (most recent call last):
>    File "<string>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'test'
> 
> Any ideas or advice?

Change to another directory. The numpy/ directory in the source tree is getting
picked up instead of the installed one. Same thing with scipy.

-- 
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 SciPy-user mailing list