[Numpy-discussion] installing numpy and scipy on OS X 10.4

W Bradley Knox bradknox at cs.utexas.edu
Wed Sep 17 12:54:55 EDT 2008


Hi everyone,

I'm trying to install numpy and scipy on my Mac that runs OS X 10.4.
It looks like my only option is to use the subversion copies. After
running "python setup.py install" in the numpy directory, it seems to
install, despite some error messages tucked away in the middle of the
installation output (I can send that if I need to).

Trying to import numpy fails though:

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/__init__.py",
line 116, in <module>
    raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python intepreter from there.

This happens from any directory, including /. Any thoughts on how I
could fix this?

Or I could also try another installation method. The numpy binaries
worked previously but then scipy didn't work with them, and this
discussion (http://projects.scipy.org/pipermail/numpy-discussion/2008-August/036480.html)
advised installing them both from svn.

Thanks,
Brad



More information about the NumPy-Discussion mailing list