是由于yum动态库使用了新安装libcurl库致使的。使用ldd查看动态库依赖关系:python
ldd /usr/lib64/python2.7/site-packages/pycurl.sovim
删除动态库配置中的新的curl路径便可python2.7
[root@localhost curl-7.65.3]# vim /etc/ld.so.confcurl
删除curl的路径 /usr/local/curl/lib/url
[root@localhost lib64]# ldconfig //当即生效blog
验证yum命令是否能够正常执行it
[root@localhost lib64]# yum list配置