首页 > 代码库 > 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 version
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 正常了
本文出自 “L.P.F” 博客,请务必保留此出处http://liupengfang1015.blog.51cto.com/6627801/1945884
Fatal Python error: pycurl: libcurl link-time version is older than compile-time version