Centos环境安装 PYTHON pycurl 报错
pip install pycurl
结果报错
解决办法
yum install python-devel curl-devel
pip install pycurl
[root@localhost ~] pip install pycurl
Collecting pycurl
Using cached pycurl-7.43.0.6.tar.gz (222 kB)
Using legacy 'setup.py install' for pycurl, since package 'wheel' is not installed.
Installing collected packages: pycurl
Running setup.py install for pycurl ... done
Successfully installed pycurl-7.43.0.6
本以为这样就结束了,新的问题又来了……
问了一下度娘,大概意思是需要指定ssl的方式啊还是协议神马的为nss或则openssl,然后重新编译安装。
ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)
在网上找到了一个解决办法
1、先卸载之前安装的pycurl
pip uninstall pycurl
3、指定nss,不要忘记后面有个分号
export PYCURL_SSL_LIBRARY=nss;
4、再次安装
pip install pycurl