관리 메뉴

Sysops Notepad

[Linux] Python pycurl 설치간 error 발생시 처리 방법 본문

업무/etc

[Linux] Python pycurl 설치간 error 발생시 처리 방법

sysops 2020. 10. 5. 01:02

1. python에 접속하여 pycurl 을 import 하여 에러메시지 확인

# python3

>>> import pycurl

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

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

 

2. 위 에러 발생시 제거 후 재설치 해준다.

# pip3 uninstall pycurl

# export PYCURL_SSL_LIBRARY=nss

# pip3 install --compile --install-option="--with-nss" --no-cache-dir pycurl

 

# python3

>>> import pycurl

Comments