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