python下载后在哪打开_centos6/7系统的自带的python安装在哪里?

所涉及的centos版本是7.3,系统自带python版本为2.7.5,于是下载python2.7.13的安装包,编译安装后,使用软连接将安装bin目录下的python与'python2.7'进行绑定,然后使用get-pip.py脚本安装pip,用相同的方法与pip2.7进行绑定。这样就不影响系统原生python对其他一些软件,比如yum等。

但都遇到不知道发生了什么,导致系统中,python与python2相连,python2又与python2.7相连,导致无论输入python python2 python2.7打开的都是python2.7的shell。这样就导致yum模块不存在而无法安装软件,即便手动安装python2.7.5,然后将其绑定与python,也仍然解决不了问题。

我也找不到系统自带的python安装在什么地方,只找到/usr/lib下有一个存放site-packages的目录。求助。

报错内容

There was a problem importing one of the Python modules

required to run yum. The error leading to this problem was:

No module named yum

Please install a package which provides this module, or

verify that the module is installed correctly.

It's possible that the above module doesn't match the

current version of Python, which is:

2.7.13 (default, Jul 14 2017, 11:11:39)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to

the yum faq at:

http://yum.baseurl.org/wiki/Faq

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值