No module named pycurl(无法使用yum和pip的情况下的解决方案)
生活随笔
收集整理的這篇文章主要介紹了
No module named pycurl(无法使用yum和pip的情况下的解决方案)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
云服務器上碰到的問題,版本是:
CentOS Linux release 7.4.1708 (Core)
稍微講下怎么回事,聽網上說,yum是python寫的
輸入命令:yum update
報錯如下:
required to run yum. The error leading to this problem was:
? ?No module named pycurl
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, Aug ?4 2017, 00:39:18)?
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
If you cannot solve this problem yourself, please go to?
the yum faq at:
? http://yum.baseurl.org/wiki/Faq
解決方案是以下兩個的整合(把以下兩個改完,才能最終解決這個問題)
一?
vi /usr/bin/yum把
#!/usr/bin/python 修改成 #!/usr/bin/python2二
http://blog.csdn.net/appleyuchi/article/details/78954403
總結
以上是生活随笔為你收集整理的No module named pycurl(无法使用yum和pip的情况下的解决方案)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: lambda的用法与实例(转载)
- 下一篇: 火狐护眼模式设置