python - SSL error installing pycurl after SSL is set -
just information start:
- i'm running mac os 10.7.5
- i have curl 7.21.4 installed (came dev tools believe)
- i have python 2.7.1
i've been trying pycurl installed, every time try run it, get:
importerror: pycurl: libcurl link-time ssl backend (openssl) different compile-time ssl backend (none/other)
i first installed pycurl using setup:
python setup.py install
which didn't work (since ssl wasn't configured).
i have since uninstalled pycurl (sudo rm -rf /library/python/2.7/site-packages/pycurl*
) before attempting:
export pycurl_ssl_library=openssl easy-install pycurl
and again before trying:
python setup.py --with-ssl install
however, i'm still getting same error ssl not compiled in. it's if instructions ignoring attempts.
setup.py doesn't complain @ when installing, easy install prints message after set pycurl_ssl_library env var:
src/pycurl.c:151:4: warning: #warning "libcurl compiled ssl support, configure not determine " "library used; no ssl crypto locking callbacks set, may " "cause random crashes on ssl requests"
which seems indicate it's ignoring fact told install openssl...
is there i'm missing in setup?
when get:
failed: importerror: pycurl: libcurl link-time ssl backend (nss) different compile-time ssl backend (none/other)
you need recompile pycurl pycurl_ssl_library set. reinstall seems 2 stage process.
it seems pip downloads stuff somewhere, compiles , puts python can use it. if have compiled version in cache literally screwed because not recompile. "gives" python same thing, regardless of in pycurl_ssl_library variable.
the solution quite simple, erase cache force recompile. depending on operating system, cache might located in several places. go , search using fact there setup.py. has package = "pycurl" string in it. there no need trouble. latest pip version supports install --compile option.
upgrade latest pip:
pip install --upgrade pip #healthy anyway
remove current pycurl with:
pip uninstall pycurl
set pycurl_ssl_library need:
export pycurl_ssl_library=nss #for me required setting
finally run
pip install --compile pycurl
note might need -devel packages various header files needed in compilation process.
Comments
Post a Comment