gpt4 book ai didi

python - 导入错误 : Cannot open shared object file in Python

转载 作者:IT王子 更新时间:2023-10-29 01:05:33 27 4
gpt4 key购买 nike

我正在尝试运行一个依赖于其他模块的 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$

没有这样的文件或目录 libhdf5.so.7 ?但是当我'ls'它时,它就在那里,就在我的目录中。那么这里发生了什么?

最佳答案

装载机没有看那里。要么将它放在库的标准位置之一,将目录添加到加载程序配置,要么在运行 Python 之前设置 $LD_LIBRARY_PATH

关于python - 导入错误 : Cannot open shared object file in Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14101044/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com