模式切换
Python urllib3 版本问题
【问题】
在平时使用 Python urllib3 库时,会出现以下错误:
bash
NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
【解决】
尝试安装旧版本的 urllib3,如:
bash
pip install urllib3=1.26.15