首页 > 编程语言 > 详细

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

时间:2016-12-22 19:26:48      阅读:6674      评论:0      收藏:0      [点我收藏+]

安装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

原文:http://www.cnblogs.com/trasin/p/6212124.html

(0)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!