[Numpy-discussion] Numpy installation problem

David Cournapeau cournape at gmail.com
Sat Jul 24 17:52:23 EDT 2010


On Sun, Jul 25, 2010 at 6:50 AM, Jonathan Tu <jhtu at princeton.edu> wrote:

>
> Also, I recently tried this all again, only doing make shared, and only
> using the list of libraries without "pt."  In both cases, when I ran Python
> interactively and tried to load the numpy module, I got the following:
>>>> import numpy
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/jhtu/local/lib/python2.6/site-packages/numpy/__init__.py",
> line 132, in <module>
>     import add_newdocs
>   File "/home/jhtu/local/lib/python2.6/site-packages/numpy/add_newdocs.py",
> line 9, in <module>
>     from lib import add_newdoc
>   File "/home/jhtu/local/lib/python2.6/site-packages/numpy/lib/__init__.py",
> line 13, in <module>
>     from polynomial import *
>   File
> "/home/jhtu/local/lib/python2.6/site-packages/numpy/lib/polynomial.py", line
> 17, in <module>
>     from numpy.linalg import eigvals, lstsq
>   File
> "/home/jhtu/local/lib/python2.6/site-packages/numpy/linalg/__init__.py",
> line 47, in <module>
>     from linalg import *
>   File
> "/home/jhtu/local/lib/python2.6/site-packages/numpy/linalg/linalg.py", line
> 22, in <module>
>     from numpy.linalg import lapack_lite
> ImportError: libptf77blas.so: cannot open shared object file: No such file
> or directory

If you install shared libraries into a directory which is not looked
in by default by ld, you should add it to the LD_LIBRARY_PATH, e.g.:

LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH python -c "import numpy"

David



More information about the NumPy-Discussion mailing list