您的位置:首页 > 编程语言 > Python开发

Fatal Python error: pycurl: libcurl link-time version is older than compile-time version

2017-07-10 12:53 926 查看
Fatal Python error: pycurl: libcurl link-time version is older than compile-time version
centos7.0以上系统yum是依赖于python的。

yum安装某个软件有时会遇到如下错误:
Fatal Python error: pycurl: libcurl link-time version is older than compile-time version
修复pycurl后可以解决。
首先安装 python 的 pip 工具 https://pypi.python.org/pypi/pip/1.4.1 tar zxvf pip-1.4.1.tar.gz
cd pip-1.4.1
python setup.py install
报错:安装python软件找不到setuptools的解决方案
下载:http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
执行:
sh setuptools-0.6c11-py2.7.egg
安装完setuptools后,就能再次使用
然后再安装 python-devel 包,系统自己选 http://rpmfind.net/linux/rpm2html/search.php?query=python-devel rpm -ivh python-devel-2.7.5-16.el7.x86_64.rpm
安装完毕
卸载pycurl
pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
再次安装pycurl
pip install pycurl
再次运行 yum 正常了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  pycurl
相关文章推荐