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

错误日志:

libatlas.so.3: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2883, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "", line 1, in 
    import pandas as pd
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/pandas/__init__.py", line 6, in 
    from . import hashtable, tslib, lib
  File "numpy.pxd", line 157, in init pandas.hashtable (pandas/hashtable.c:22150)
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/numpy/__init__.py", line 180, in 
    from . import add_newdocs
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in 
    from numpy.lib import add_newdoc
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in 
    from .type_check import *
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in 
    import numpy.core.numeric as _nx
  File "/opt/tiger/ss_lib/python_package/lib/python2.7/site-packages/numpy/core/__init__.py", line 14, in 
    from . import multiarray
ImportError: libatlas.so.3: cannot open shared object file: No such file or directory

原因,缺少libatlas-base-dev

解决办法:

sudo apt-get install libatlas-base-dev

参考link:https://github.com/apache/incubator-mxnet/issues/5290

你可能感兴趣的:(出错)