python缺少动态库_解决python动态库m.so.1.0错误问题

$ python -V

python: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

ldd是列出动态库依赖关系:

$ ldd /usr/local/bin/python3.6

linux-vdso.so.1 => (0x00007fffecbba000)

libpython3.6m.so.1.0 => not found

libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fe1400ff000)

libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fe13fefb000)

libutil.so.1 => /usr/lib64/libutil.so.1 (0x00007fe13fcf8000)

libm.so.6 => /usr/lib64/libm.so.6 (0x00007fe13f9f6000)

libc.so.6 => /usr/lib64/libc.so.6 (0x00007fe13f628000)

/lib64/ld-linux-x86-64.so.2 (0x00007fe14031b000)

查找动态库:

$ find / -name 'libpython3.6m.so.1.0'

/root/Python-3.6.9/libpython3.6m.so.1.0

/usr/local/lib/libpython3.6m.so.1.0

(2)将libpython3.6m.so.1.0文件路

你可能感兴趣的:(python缺少动态库)