解决centos中python升级后yum不可用问题

  • A+
所属分类:运维教程

系统Python软链接指向Python2.7版本后,因yum是不兼容Python 2.7的,故yum不能正常工作,我们需要指定yum的Python版本为升级前的版本

  1. vi /usr/bin/yum

将文件头部的

  1. #!/usr/bin/python

改成

  1. #!/usr/bin/python.bak
  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:12   其中:访客  12   博主  0

    • avatar link url

      Wonderful blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Thank you

      • avatar go to these guys

        I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post…