在重装时由于依赖问题一直报错:
Import pycurl It works. But when I trying to do it in python2.7, python return an error: ImportError: No modul named pycurl What i did wrong? Why it work in python2.6 and don't work in python2.7. Python2.7 pycurl python2.6. Asked 15 Apr '13, 11:31. PycURL requires that the SSL library that it is built against is the same one libcurl, and therefore PycURL, uses at runtime. PycURL's setup.py uses curl-config to attempt to figure out which SSL library libcurl was compiled against, however this does not always work. If PycURL is unable to determine the SSL library in use it will print a.
/usr/bin/python is needed by yum-3.4.3-163.el7.centos.noarch
python >= 2.4 is needed by yum-3.4.3-163.el7.centos.noarch
python(abi) = 2.7 is needed by yum-3.4.3-163.el7.centos.noarch
python-iniparse is needed by yum-3.4.3-163.el7.centos.noarch
python-sqlite is needed by yum-3.4.3-163.el7.centos.noarch
python-urlgrabber >= 3.10-8 is needed by yum-3.4.3-163.el7.centos.noarch
rpm-python is needed by yum-3.4.3-163.el7.centos.noarch
libpython2.7.so.1.0()(64bit) is needed by yum-metadata-parser-1.1.4-10.el7.x86_64
python(abi) = 2.7 is needed by yum-metadata-parser-1.1.4-10.el7.x86_64
yum-plugin-fastestmirror-1.1.31-52.el7.noarch
yum-utils-1.1.31-52.el7.noarch
2、将其全部卸载
#rpm -e yum-plugin-fastestmirror-1.1.31-52.el7.noarch --nodeps
#rpm -e yum-metadata-parser-1.1.4-10.el7.x86_64 --nodeps
3、在http://mirrors.163.com/centos/7/os/x86_64/Packages/下载如下20个包

libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm
lvm2-python-libs-2.02.185-2.el7.x86_64.rpm
yum-3.4.3-163.el7.centos.noarch.rpm

python-libs-2.7.5-86.el7.x86_64.rpm
python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm
yum-plugin-aliases-1.1.31-52.el7.noarch.rpm
python-setuptools-0.9.8-7.el7.noarch.rpm
python-devel-2.7.5-86.el7.x86_64.rpm
yum-plugin-protectbase-1.1.31-52.el7.noarch.rpm
rpm-python-4.11.3-40.el7.x86_64.rpm
4、下载完成后执行
#rpm -Uvh --replacepkgs lvm2-python-libs*.rpm --nodeps --force
#rpm -Uvh --replacepkgs libxml2-python*.rpm --nodeps --force
#rpm -Uvh --replacepkgs python*.rpm --nodeps --force
#rpm -Uvh --replacepkgs rpm-python*.rpm yum*.rpm --nodeps --force
Pycurl Ipv6

5、成功安装
Pycurl Install
File '/usr/bin/yum', line 30
^
Pycurl Post
posted @ 2019-10-31 11:58ILK 阅读(18457) 评论(1) 编辑收藏
