出现如下警告信息:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ’[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)‘))’: /simple/pip/
可以运行 Python 自带的证书安装工具:
/Applications/Python\ 3.x/Install\ Certificates.command
将 3.x 替换成你安装的 Python 版本号,比如 3.11。