美文网首页
解决pycurl: libcurl link-time ssl

解决pycurl: libcurl link-time ssl

作者: pcliuyang | 来源:发表于2016-10-10 16:29 被阅读568次

手贱升级了一个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 

相关文章

网友评论

      本文标题:解决pycurl: libcurl link-time ssl

      本文链接:https://www.haomeiwen.com/subject/lxhvyttx.html