There was a problem importing one of the Python modules required to run yum
生活随笔
收集整理的這篇文章主要介紹了
There was a problem importing one of the Python modules required to run yum
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
為什么80%的碼農都做不了架構師?>>> ??
最近從python 2.6 升級到python2.7 導致 yum 不可用,
原因主要是yum 不支持python27 因此需要更改yum的可用路徑
which yum
查看下yum的安裝路徑
/usr/bin/yum
vi /usr/bin/yum
更改#!/usr/bin/python 為#!/usr/bin/python2.6
更改完成之后就可以了
轉載于:https://my.oschina.net/ayy/blog/736512
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的There was a problem importing one of the Python modules required to run yum的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Activiti中的各个service的
- 下一篇: Linux常用的(个人用)