我正在尝试运行使用Python 2.7.6的工具,但它会一直返回相同的错误消息:
python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
我发现人们以前遇到过这个问题,但似乎建议导出到LD_LIBRARY_PATH
,我认为这不是问题所在(如下所示):
ldd'哪个python'给出:
linux-vdso.so.1 => (0x00007fff19ac0000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000360c200000)
libdl.so.2 => /lib64/libdl.so.2 (0x000000360be00000)
libutil.so.1 => /lib64/libutil.so.1 (0x000000361ce00000)
libm.so.6 => /lib64/libm.so.6 (0x000000360ce00000)
libc.so.6 => /lib64/libc.so.6 (0x000000360ba00000)
/lib64/ld-linux-x86-64.so.2 (0x000000360b600000)
echo $LD_LIBRARY_PATH
包含文件夹/software/src/Python-2.7.6
ls /software/src/Python-2.7.6 | grep libpython2.7
给出:
libpython2.7.a
libpython2.7.so
libpython2.7.so.1.0
我的python安装配置中有什么问题吗?