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

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

centos7.0以上系统yum是依赖于python的。
html

yum安装某个软件有时会遇到以下错误:python

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

修复pycurl后能够解决。centos

首先安装 python  的  pip 工具    https://pypi.python.org/pypi/pip/1.4.1curl

tar zxvf pip-1.4.1.tar.gzide

cd pip-1.4.1工具

python setup.py installurl

报错:安装python软件找不到setuptools的解决方案centos7

下载: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 正常了

相关文章
相关标签/搜索