美文网首页
Python urllib.error certificate

Python urllib.error certificate

作者: 生命不止运动不息 | 来源:发表于2021-05-23 21:48 被阅读0次

python3.9版本,使用easy_install3.9 安装frida.egg的包时报错了

sudo easy_install-3.9 /Users/billanderson/Downloads/frida-14.2.18-py3.8-win-amd64.egg

错误如下:

error: Setup script exited with error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>

原因:原来是python3后,url请求需要进行ssl验证。

解决:

进入应用Python 3.9的目录,双击Install Certificates.command 进行安装,完毕可以解决该问题。
--- 如何找到【Install Certificates.command】目录?
打开finder , 使用搜索功能。有可能搜到多个,查看其目录是python3下的,安装这个。

image.png

参考文章:
https://blog.yuccn.net/archives/625.html?unapproved=179&moderation-hash=54faafa8872ab7c62ad6c518653df4ac#comment-179

https://www.jianshu.com/p/49b74f6c6b69

相关文章

网友评论

      本文标题:Python urllib.error certificate

      本文链接:https://www.haomeiwen.com/subject/fyzzjltx.html