error while loading shared libraries: libpython3.5m.so.1.0

问题描述

/usr/local/bin/python3.5: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

问题原因

python3无法找到库文件 libpython3.5m.so.1.0

解决办法

找到库文件所在位置

find / -name "libpython3.5m.so.1.0"
/usr/local/lib/libpython3.5m.so.1.0

添加到配置文件

vim /etc/ld.so.conf.d/python3.conf
cat /etc/ld.so.conf.d/python3.conf
/usr/local/lib/libpython3.5m.so.1.0

加载配置文件

ldconfig
posted @ 2017-11-01 09:49  云梦凌霄  阅读(1656)  评论(0编辑  收藏  举报