这是我得到的错误:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
这是在windows上的python3.7.3版本
我在学习本教程时也遇到了同样的错误:https://developers.google.com/drive/api/v3/quickstart/python
同样在使用gspread时,根据本教程:https://towardsdatascience.com/accessing-google-spreadsheet-data-using-python-90a5bc214fd2
在使用本教程时,pygsheets也会出现同样的错误:https://maxpearl.us/gspread-vs-pygsheets.html
很明显,这三者之间的共同点就是引擎盖下的东西出了问题。 我想我的本地安全证书有问题,但我不确定这到底意味着什么,或者如何修复它。你知道吗
谢谢
编辑: 下面是一些详细信息,我运行了以下命令:
python -c "import ssl; print(ssl.get_default_verify_paths())"
结果如下:
DefaultVerifyPaths(cafile=None, capath=None, openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='C:\Program Files\Common Files\SSL/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='C:\Program Files\Common Files\SSL/certs')
我注意到,当我沿着以下路径运行时,SSL文件夹不存在:“C:\Program Files\Common Files\SSL”/证书pem'
目前没有回答
相关问题 更多 >
编程相关推荐