首页 > 代码库 > python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
安装python3遇到报错:
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
./configure --prefix=/usr/local/Python-3.5.2 --enable-shared
make
make install
ln -s /usr/local/Python-3.5.2/bin/python3 /usr/bin/python3
遇到报错:
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
解决:
查看动态库情况
ldd /usr/local/Python-3.5.2/bin/python3
源码目录复制过去
cp libpython3.5m.so.1.0 /usr/lib/
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。