CentOS 6.3+Python 2.7.10安装pycurl遇到的问题汇总

1.启动python中的pycurl模块出现如下问题:

ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)

CentOS 6.3+Python 2.7.10安装pycurl遇到的问题汇总_第1张图片

解决方法:没有指定环境变量,卸载后重新安装
pip uninstall pycurl
export PYCURL_SSL_LIBRARY=nss
pip install pycurl

2.使用pip安装pycurl时出现如下问题
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory

解决方法:

yum -y install libcurl-devel

3.安装
easy_install-2.7 pycurl
时出现MemoryError错误,同时8G内存几乎占满,磁盘io极高,使用top查看,的确如此。
解决方法:
目前暂未找到实质原因,python虽然易用,但是内存占用比较多。建议改用pip安装或是源码包安装。


参考文献

[1].http://stackoverflow.com/questions/23937933/could-not-run-curl-config-errno-2-no-such-file-or-directory-when-installing

[2].http://leeyx.org/archives/971

[3].

你可能感兴趣的:(python,pycurl)