CentOS 6.3+Python 2.7.10安装pycurl遇到的问题汇总
生活随笔
收集整理的這篇文章主要介紹了
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遇到的问题汇总的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在CentOS 6.3/6.5 64bi
- 下一篇: 在Ubuntu 14.04 64bit上