下载aosp时,执行 repo init遇到如下错误:
代码语言:javascript复制fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
repo中新增如下两行代码得以解决:
代码语言:javascript复制import ssl
ssl._create_default_https_context = ssl._create_unverified_context
参考链接: https://m.blog.naver.com/PostView.nhn?blogId=chandong83&logNo=220736591670&proxyReferer=https://www.google.com.tw/