在此处尝试Google表格API的python快速入门示例时:https://developers.google.com/sheets/api/quickstart/python,我得到了错误
---------------------------------------------------------------------------
~/.local/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
397 if new_retry.is_exhausted():
--> 398 raise MaxRetryError(_pool, url, error or ResponseError(cause))
399
MaxRetryError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')",),))
During handling of the above exception, another exception occurred:
~/.local/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
512 if isinstance(e.reason, _SSLError):
513 # This branch is for urllib3 v1.22 and later.
--> 514 raise SSLError(e, request=request)
515
516 raise ConnectionError(e, request=request)
SSLError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')",),))
我正在conda环境中的MacOS 10.14.5上运行此程序 openssl 1.1.1 python 3.6