Python报错:NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the ‘ssl‘ modul

(一)编译重装Python , 无效

查看openssl版本

openssl -V

版本过低升级

查看openssl安装路径

which openssl

添加配置

./configure --with-openssl=/path/to/openssl

安装

makesudo

make install

(二)urllib3降版本 , 有效

卸载

pip uninstall urllib3

安装

pip install urllib3==1.23

发布日期:
分类:其它

发表评论

您的电子邮箱地址不会被公开。