pycurl安装报错

linux下安装pycurl有时候会报错,导致不能用,下面列举两个解决办法:

 

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

 

1 先卸载pycurl:pip uninstall pycurl

   执行:export PYCURL_SSL_LIBRARY=nss

  安装: sudo pip install pycurl

 

2 先卸载pycurl:pip uninstall pycurl

    获取pycurl:curl -O https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz

    安装:tar -zvxf pycurl-7.19.3.1.tar.gz 

              cd pycurl-7.19.3.1

              sudo python setup.py --with-nss install

 

 

你可能感兴趣的:(pycurl)