Mac终端执行Python脚本( python3 AutoInstallApk_Official_V2.py )报错:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
百度了很多都说是因为SSL证书问题。
解决办法:(参考:Python [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 解决方法)
在Python脚本文件中加入如下代码:
import ssl ssl._create_default_https_context = ssl._create_unverified_context
再次运行就不会报那个错了。
Mac终端执行Python脚本报错:ssl.SSLCertVerificationError
原文:https://www.cnblogs.com/shenxiaolin/p/14736697.html