python - 在 python 2.7.9 中运行 pip search 时出现 SSL 错误

标签 python python-2.7 ssl pip

当我运行 pip search circus - 我收到以下 SSL 错误:

SSLError: [Errno 1] _ssl.c:490: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

我读了一些文章,说有关将网站添加到 cacerts.txt,但我不知道我需要添加什么网站,也不知道 cacerts.txt 文件所在的位置。

谢谢

最佳答案

wget http://curl.haxx.se/ca/cacert.pem
pip --cert cacert.pem search circus

关于python - 在 python 2.7.9 中运行 pip search 时出现 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28337750/

相关文章:

python - line.strip() 方法说明

python - 在字符串中使用切片赋值时出错

python - 导入错误:没有名为 oauth2 的模块

google-chrome - 该网站的身份尚未经过 openssl 验证

具有 SNI 的 Apache HTTPS 反向代理,代理上没有 key

wcf - 如何执行 ssl 用户身份验证

Python:从数组中选取某个元素

python - 加载、转储和读取 json 文件有什么不同?

python - 如何从 url 获取 server_name?

python-2.7 - 将模块中的所有函数包装在包装器中