获取错误:网络错误:[SSL:证书验证失败] 证书验证失败

huangapple go评论56阅读模式
英文:

On running pgxn install -> Getting ERROR: network error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

问题

使用 pip install pgxnclient 安装了 PGXN。

尝试使用 PGXN 客户端安装了 PostgreSQL 扩展 pgxn_utils

在运行命令 pgxn install pgxn_utils 时出现了错误:

错误: 网络错误: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败: 无法获取本地颁发者证书 (_ssl.c:1129)
英文:

Installed PGXN using pip install pgxnclient

Tried installing the postgres extension pgxn_utils using PGXN client

On running the command pgxn install pgxn_utils
getting the Error:

ERROR: network error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

答案1

得分: 0

一个对我有效的答案是,似乎我尚未在我的 Mac 上安装 Python 证书,所以我从以下路径前往并安装了它

/Applications/Python 3.11/Install Certificates.command

只需更改你的 Python 版本,之后一切都对我正常工作了。

英文:

An answer that worked for me, it appears i had not yet installed the python certificates on my mac, so from the following path i went and installed it

/Applications/Python 3.11/Install Certificates.command

Only change the version of your python, after that everything, worked fine for me

huangapple
  • 本文由 发表于 2023年7月3日 14:30:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76602309.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定