centos 升级python2.6到2.7,yum用不了了。
智能玩家a 2017-03-30 11:48:52 centos 升级python2.6到2.7,yum用不了了。
百度都说更改etc bin yum的第一行
将文件头部的
#!/usr/bin/python
改成
#!/usr/bin/python2.6.6
不好用。
然后又是mv 又是ln -s的,导致现在
python查询版本是我装的新版,但是yum还是用不了。错误信息如下:
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, Mar 29 2017, 15:50:57)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
请问我该怎么办?