教程集 www.jiaochengji.com
教程集 >  Python编程  >  Python入门  >  正文 linux下安装python后不能运行怎么办

linux下安装python后不能运行怎么办

发布时间:2021-02-04   编辑:jiaochengji.com
教程集为您提供linux下安装python后不能运行怎么办等资源,欢迎您收藏本站,我们将为您提供最新的linux下安装python后不能运行怎么办资源

问题:

(推荐教程:Python入门教程)

安装python后运行出现“./python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory”问题。

解决方法:

1、打开/etc/ld.so.conf文件;

2、在最后附加一行libpython2.7.so.1.0所在的路径,我这里是/usr/local/lib。

3、保存后执行:

/sbin/ldconfig
/sbin/ldconfig -v

您可能感兴趣的文章:
linux下安装python后不能运行怎么办
找不到python安装路径怎么办
django安装失败怎么办
python library怎么安装
python安装路径怎么找
Linux下如何编译安装源码包软件
工行网银助手无法安装解决办法
python环境怎么安装
呆呆播放器不能使用怎么办 呆呆播放器不能用解决办法
python怎么安装库

[关闭]
~ ~