Home » » ImportError: libatlas.so.3: cannot open shared object file: No such file or directory

ImportError: libatlas.so.3: cannot open shared object file: No such file or directory

After installing Scipy, when I import optimize from Scipy, the following error occurs. 

Traceback (most recent call last):
  File "", line 1, in
  File "/home/allank/SmashCell/local/lib/python2.7/site-packages/numpy/__init__.py", line 130, in
    import add_newdocs
  File "/home/allank/SmashCell/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in
    from lib import add_newdoc
  File "/home/allank/SmashCell/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 13, in
    from polynomial import *
  File "/home/allank/SmashCell/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 18, in
    from numpy.linalg import eigvals, lstsq
  File "/home/allank/SmashCell/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 47, in
    from linalg import *
  File "/home/allank/SmashCell/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 22, in
    from numpy.linalg import lapack_lite
ImportError: libatlas.so.3: cannot open shared object file: No such file or directory


Solution of this problem: 

add the paths to LD_LIBRARY_PATH as advised (see below), then "python setup.py clean;python setup.py build;python setup.py install;"  but the same error persists.

export LAPACK=/usr/lib/lapack/liblapack.so;export ATLAS=/usr/lib/atlas-base/libatlas.so;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/lapack:/usr/lib/atlas-base;

4 Comments:

sri said...

Thanks for sharing this informative content.,
Leanpitch provides online training in Scrum Master Certification , everyone can use it wisely.
Join Leanpitch 2 Days CSM Certification Workshop in different cities.

Scrum master certification online

CSM certification online

sri said...

Thanks for sharing this.,
Leanpitch provides online training in Scrum Master, everyone can use it wisely.
Join Leanpitch 2 Days CSM Certification Workshop in different cities.

Scrum master certification

csm certification

sri said...

Thanks for sharing this.,
Leanpitch provides online training in agile coach during this lockdown period everyone can use it wisely.

agile coach certification

icp acc certification

sri said...

Excellent content ,Thanks for sharing this .,
Leanpitch provides online training in CSPO everyone can use it wisely.,
Join Leanpitch 2 Days CSPO Certification Workshop in different cities.

CSPO certification

Product owner certification

Popular Posts