51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

Yum缺少pycurl.so模块无法使用处理办法

概述

由于前公司员工升级python后导致遗留问题没有解决,无法使用yum命令进行操作。

[root@localhost ~]# yum list wget
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib64/python2.7/site-packages/pycurl.so: cannot open shared object file: No such file or directory


Please install a package which provides this module, or
verify that the module is installed correctly.


It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Oct 31 2018, 18:48:32)
\[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)\]

`If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq`

处理办法

通过正常的服务器上检索该库文件包名,在卸载后重新安装即可。

[root@localhost ~]# yum whatprovides pycurl.so
[root@localhost ~]# rpm -e python-pycurl --nodeps 
[root@localhost ~]# rpm -ivh python-pycurl-7.19.0-19.el7.aarch64.rpm
赞(0)
未经允许不得转载:工具盒子 » Yum缺少pycurl.so模块无法使用处理办法