手贱升级了一个python的包,结果导致yum报错
[XXX@XXX ~]$ sudo yum -y install gcc gcc-c++ make autoconf automake
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)
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.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
解决办法
sudo pip uninstall pycurl
echo 'pycurl==7.19.5.1 --global-option="--with-nss
"' > requires.py
sudo pip install -r requires.py