在使用Homebrew安装Python3之后并在连接到公司网络和防火墙后尝试在MacOS上做“ pip3列表”后,出现以下错误:
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1051)'))) - skipping
经过一番挖掘,我发现了这个article。有用!将公司的.CER文件转换为.PEM,然后执行“ pip3 --cert root-cert.pem列表”即可解决此问题。但是,数据保存在哪里?意思是,如何在不使用某些伪造的.PEM文件再次实际执行命令的情况下将设置恢复为NULL或修改设置?