/Library/Python/3.9/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3>=2.0 does not work with system Python on macOS · Issue #3020 · urllib3/urllib3 · GitHub
卸载: sudo pip uninstall urllib3
在安装低版本的urllib3
再运行python脚本就成功了