当前位置:   article > 正文

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

libpython3.5m.so.1.0: cannot open shared object file: no such file or direct

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

转载于:https://www.cnblogs.com/trasin/p/6212124.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/704539
推荐阅读
相关标签
  

闽ICP备14008679号