ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0h 27 Mar 2018'. 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

posted @ 2025-01-02 17:43  凝心叶子  阅读(2078)  评论(0)    收藏  举报