SecureCRT出现 libpython2.7.so.1.0: cannot open shared object file

环境:

组件/系统 版本
Ubuntu 20.04
SecureCRT 7.3.3(build  779)

 

 

/usr/bin/SecureCRT

ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

 

解决方案:

.bashrc中写入:

export LD_LIBRARY_PATH=/home/appleyuchi/anaconda3/envs/Python2.7/lib:$LD_LIBRARY_PATH

1.查看动态库路径:

/sbin/ldconfig -v

2.sudo mkdir -p /usr/local/lib/x86_64-linux-gnu

3.sudo cp /home/appleyuchi/anaconda3/envs/Python2.7/lib/libpython2.7.so.1.0 /usr/local/lib/x86_64-linux-gnu
4.刷新sudo /sbin/ldconfig

5./usr/bin/SecureCRT

完美解决

 前面划掉的方式会干扰hadoop集群启动,所以是不行的。

 

 

 

你可能感兴趣的:(SecureCRT)