当我尝试使用bq
$ bq ls
BigQuery error in ls operation: Cannot contact server. Please try again.
Traceback: Traceback (most recent call last):
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/bigquery_client.py", line 886, in BuildApiClient
response_metadata, discovery_document = http.request(discovery_url)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/oauth2client_4_0/transport.py", line 160, in new_request
credentials._refresh(orig_request_method)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/oauth2client_4_0/client.py", line 762, in _refresh
self._do_refresh_request(http)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/google_reauth/reauth_creds.py", line 121, in _do_refresh_request
headers=headers))
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/google_reauth/reauth.py", line 270, in refresh_access_token
headers=headers)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/google_reauth/_reauth_client.py", line 152, in refresh_grant
headers=headers)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/google_reauth/reauth_creds.py", line 108, in http_request
body=body, headers=headers)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/oauth2client_4_0/transport.py", line 283, in request
connection_type=connection_type)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/httplib2/__init__.py", line 1626, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/httplib2/__init__.py", line 1368, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/httplib2/__init__.py", line 1288, in _conn_request
conn.connect()
File "/home/dimanne/Downloads/google-cloud-sdk/platform/bq/third_party/httplib2/__init__.py", line 1082, in connect
raise SSLHandshakeError(e)
SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)
内部使用python2。
我应该怎么做才能解决此问题?