[Numpy-discussion] question for numpy import error

명광민 kmmyung@kesti.co...
Tue Nov 23 19:20:48 CST 2010


I receive the following error when I try to import numpy


===========================================================
[node0]:/home/koojy/KMM> python2.6
Python 2.6.4 (r264:75706, Jul 26 2010, 16:55:18) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/site-packages/numpy/__init__.py", line 132, in <module>
    import add_newdocs
  File "/usr/local/lib/python2.6/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "/usr/local/lib/python2.6/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/local/lib/python2.6/site-packages/numpy/lib/polynomial.py", line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/usr/local/lib/python2.6/site-packages/numpy/linalg/__init__.py", line 47, in <module>
    from linalg import *
  File "/usr/local/lib/python2.6/site-packages/numpy/linalg/linalg.py", line 22, in <module>
    from numpy.linalg import lapack_lite
ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory
>>> 

============================================================

OS info : Linux node0 2.6.9-78.ELsmp #1 SMP Thu Jul 24 23:54:48 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

numpy install :  following the "Building by hand" of Contents of below site.
      http://www.scipy.org/Installing_SciPy/Linux#head-40c26a5b93b9afc7e3241e1d7fd84fe9326402e7

and  To build with gfortran:   python setup.py build –fcompiler=gnu95

Any help on this error would be appreciated.


K.M. Myung

==================================
Korea Environmental Science & Technology Institute, inc.
phone : 82-2-2113-0705  
direct : 82-70-7098-2644
fax : 82-2-2113-0706
e-mail : kmmyung@kesti.co.kr
==================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20101124/78d75639/attachment-0001.html 


More information about the NumPy-Discussion mailing list