ImportError: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168

原因:urllib3 v2.0和OpenSSL 1.1.0h版本不兼容

两种方案;

1、升级openssl版本

brew install openssl@1.1

2、降级urllib3版本

pip install urllib3==1.26.6

转:https://www.cnblogs.com/miracleflower/p/18648396

posted @ 2025-02-20 12:13  rmticocean  阅读(41)  评论(0)    收藏  举报