本文主要是介绍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)
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].
这篇关于CentOS 6.3+Python 2.7.10安装pycurl遇到的问题汇总的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!