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

hearthougan發表於2018-10-16

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

 

相關文章