简体   繁体   English

ImportError:无法在Python中打开共享对象文件

[英]ImportError: Cannot open shared object file in Python

I am trying to run a python script which depends on other modules, however I ran into this: 我试图运行一个依赖于其他模块的python脚本,但我遇到了这个:

bash-3.2$ PYTHONPATH=/my/path/tables-2.3.1/build/lib.linux-x86_64-2.7/ ./fastcluster.py
Traceback (most recent call last):
  File "./fastcluster.py", line 5, in <module>
    import tables
  File "/my/path/tables-2.3.1/build/lib.linux-x86_64-2.7/tables/__init__.py", line 59, in <module>
    from tables.utilsExtension import getPyTablesVersion, getHDF5Version
ImportError: libhdf5.so.7: cannot open shared object file: No such file or directory
bash-3.2$ ls libhdf5.so.7
libhdf5.so.7
bash-3.2$

No such file or directory libhdf5.so.7 ? 没有这样的文件或目录libhdf5.so.7? But when I 'ls' it, it's there, right in my directory. 但是,当我'它',它就在那里,就在我的目录中。 So what's going on here? 那么这里发生了什么?

The loader isn't looking there. 装载机不在那里。 Either put it in one of the standard locations for libraries, add the directory to the loader configuration, or set $LD_LIBRARY_PATH before running Python. 将其放在库的标准位置之一,将目录添加到加载程序配置,或在运行Python之前设置$LD_LIBRARY_PATH

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python`ImportError:libboost_python27.so.1.67.0:无法打开共享对象文件:没有这样的文件或目录` - python `ImportError: libboost_python27.so.1.67.0: cannot open shared object file: No such file or directory ` 导入错误:libboost_python.so.1.65.1:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libboost_python.so.1.65.1: cannot open shared object file: No such file or directory 而导入python。 ImportError:libcublas.so.9.0:无法打开共享对象文件:没有这样的文件或目录 - While Import python. ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory 如何克服 Python ImportError: libmqic_r.so: cannot open shared object file: No such file or directory - How to over come Python ImportError: libmqic_r.so: cannot open shared object file: No such file or directory ImportError:libboost_python.so.1.41.0:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libboost_python.so.1.41.0: cannot open shared object file: No such file or directory ImportError:libcudnn.so.5:无法打开共享对象文件:没有这样的文件或目录,带有Tensorflow-gpu的Python 2.7 - ImportError: libcudnn.so.5: cannot open shared object file: No such file or directory, Python 2.7 with Tensorflow-gpu Azure Linux Python Web应用程序ImportError:libodbc.so.2无法打开共享对象文件 - Azure Linux Python Webapp ImportError: libodbc.so.2 cannot open shared object file 导入错误:libcuda.so.1:无法打开共享对象文件 - ImportError: libcuda.so.1: cannot open shared object file Python3.5 导入错误:libpython3.5m.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - Python3.5 ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory ImportError:libcublas.so.8.0:无法打开共享对象文件:没有这样的文件或目录(共享Linux) - ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory (Shared Linux)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM