当使用python2.6安装pycurl时,在python2.7里import pycurl可能报错:

ImportError: No module named pycurl

解决方法:

在/usr/local/lib/python2.7/site-packages(python2.7安装在/usr/local/)里创建pycurl.pth文件,写入pycurl包在所在绝对路径:

/usr/lib64/python2.6/site-packages/