pycurl连接基库处理方法
程序员文章站
2024-03-24 10:20:46
...
原:
'PycURL/7.43.0 libcurl/7.19.7 NSS/3.12.10.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2'
修改后:
'PycURL/7.43.0 libcurl/7.29.0 OpenSSL/1.0.0 zlib/1.2.3 libidn/1.18'
修改步骤:
1 安装openssl 下载页面:https://www.openssl.org/source/
tar zxvf openssl-1.0.0a.tar.gz
cd openssl-1.0.0a./config --prefix=/usr/local/openssl
make && make install
2 wget https://bootstrap.pypa.io/get-pip.py 或者 wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
3 python get-pip.py
4 pip uninstall pycurl
5 export PYCURL_SSL_LIBRARY=openssl
6 pip install --compile --no-cache-dir pycurl
7 export LD_LIBRARY_PATH=/usr/local/lib 或 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH