error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: N

Posted Hearthougan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: N相关的知识,希望对你有一定的参考价值。

Python3问题:

./out: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

解决办法:

1、cd /etc/ld.so.conf.d

2、vim python3.conf

3、添加 /root/anaconda3/lib(替换成你的路径)

4、ldconfig

Python2问题:

./out: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

解决办法:

1、vi /etc/ld.so.conf.d/python2.7.conf

2、添加   /root/anaconda3/lib(替换成你的路径)

3、ldconfig

 

以上是关于error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: N的主要内容,如果未能解决你的问题,请参考以下文章

error while loading shared libraries错误解决

error while loading shared libraries错误解决

error while loading shared libraries: libmcrypt.so.4

error while loading shared libraries: libaio.so.1

linux下报错:error while loading shared libraries

error while loading shared libraries的解決方法