最近,我的 pip 有问题,我问了 here ,它也影响了我的 easy_install 和我的 py2app。根据答案我得到here ,我昨晚试过“安装证书。命令”。现在,我的 pip 开始工作了!但我的 easy_install、pip3、easy_install3 和 py2app 仍然无法使用此错误(pip3 install <anymodule>
):
Collecting anymodule
Could not fetch URL https://pypi.python.org/simple/anymodule/: There was a
problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:748) - skipping
Could not find a version that satisfies the requirement anymodule (from
versions: )
No matching distribution found for anymodule
我几乎什么都试过了!我在 macOS sierra 上使用 python2 和 3。非常感谢您的帮助!(;
更新:sudo easy_install 正在运行
最佳答案
在尝试解决我的问题一周后,我发现了为什么我的 py2app、pip 和...无法正常工作。这是我的杀毒软件(卡巴斯基)的问题。今天,在打开 google.com 时,我了解到我在打开任何页面时都遇到了问题。我在其他浏览器上遇到了同样的问题。我在 safari 中阅读了该错误消息。卡巴斯基颁发了所有证书!(包括 pip、py2app ...)我通过禁用来修复它:kaspersky internet security > preference > protection > check secure connections(https)。
关于python - 如何修复 Mac 上的 'CERTIFICATE_VERIFY_FAILED' 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45996460/