python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file:
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file:相关的知识,希望对你有一定的参考价值。
安装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:的主要内容,如果未能解决你的问题,请参考以下文章
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file:
error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: N
OracleOGG error while loading shared libraries
Django1.9 Python3.4出现Error loading MySQLdb