先参考这版
https://blog.youkuaiyun.com/beyondlpf/article/details/38679097
关键是pycurl 7.21.5版本src目录下没有Makefile
pycurl7.19.5src下没有pycurl.c
pycurl7.19.3编译出错
于是放弃了这种方法
然后发现另一篇
https://blog.youkuaiyun.com/abcdu1/article/details/85786429
但是,如果要用到curl的话怎么办?所以删掉是不行的。
我的方法是
先把libcurl*放到别的目录下,用到时再移回来。
另外的方法,编译pycurl
https://blog.youkuaiyun.com/qq_32502511/article/details/80606636
后续问题
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
pycurl: libcurl link-time version (7.29.0) is older than compile-time version (7.65.1)
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, Jun 20 2019, 20:27:34)
[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
乍一看,差不多,其实有区别,关键一句如下
pycurl: libcurl link-time version (7.29.0) is older than compile-time version (7.65.1)
解决方法
cp /usr/local/lib/libcurl.so /usr/lib64/