Hi I am getting this error when trying to install, python 3.11 is already installed
Do you want to help improve the Google Cloud CLI (y/N)? n
Traceback (most recent call last):
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\util\connection.py", line 95, in create_connection
raise err
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\util\connection.py", line 85, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 717, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 406, in _make_request
self._validate_conn(conn)
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 1057, in _validate_conn
conn.connect()
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connection.py", line 358, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connection.py", line 179, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x0000029282907F90>, 'Connection to dl.google.com timed out. (connect timeout=60)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\requests\adapters.py", line 439, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='dl.google.com', port=443): Max retries exceeded with url: /dl/cloudsdk/channels/rapid/components-2.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000029282907F90>, 'Connection to dl.google.com timed out. (connect timeout=60)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\\bin\bootstrapping\install.py", line 376, in <module>
main()
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\\bin\bootstrapping\install.py", line 349, in main
Install(
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\\bin\bootstrapping\install.py", line 209, in Install
_CLI.Execute(['--quiet', 'components', 'list'])
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 1013, in Execute
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 1050, in _HandleAllErrors
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\calliope\exceptions.py", line 557, in HandleError
core_exceptions.reraise(exc)
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\exceptions.py", line 146, in reraise
six.reraise(type(exc_value), exc_value, tb)
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\six\__init__.py", line 719, in reraise
raise value
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 987, in Execute
resources = calliope_command.Run(cli=self, args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 807, in Run
resources = command_instance.Run(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\surface\components\list.py", line 102, in Run
result = update_manager.List(show_hidden=args.show_hidden,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 788, in List
to_print, current_version, latest_version = self._GetPrintListWithDiff()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 825, in _GetPrintListWithDiff
_, diff = self._GetStateAndDiff(command_path='components.list')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 714, in _GetStateAndDiff
latest_snapshot = self._GetLatestSnapshot(version=version,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 697, in _GetLatestSnapshot
return snapshots.ComponentSnapshot.FromURLs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\snapshots.py", line 175, in FromURLs
data = [
^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\snapshots.py", line 176, in <listcomp>
(ComponentSnapshot._DictFromURL(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\snapshots.py", line 200, in _DictFromURL
response = installers.MakeRequest(url, command_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\installers.py", line 114, in MakeRequest
return _RawRequest(url, headers=headers, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\installers.py", line 162, in _RawRequest
return retryer.RetryOnException(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\util\retry.py", line 201, in RetryOnException
exceptions.reraise(exc_info[1], tb=exc_info[2])
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\exceptions.py", line 146, in reraise
six.reraise(type(exc_value), exc_value, tb)
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\six\__init__.py", line 719, in reraise
raise value
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\util\retry.py", line 182, in TryFunc
return func(*args, **kwargs), None
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\updater\installers.py", line 192, in _ExecuteRequestAndRaiseExceptions
response = requests_session.get(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\requests\sessions.py", line 557, in get
return self.request('GET', url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\transport.py", line 258, in WrappedRequest
response = orig_request(*modified_args, **modified_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\googlecloudsdk\core\requests.py", line 246, in WrappedRequest
return orig_request_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\requests\sessions.py", line 544, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\requests\sessions.py", line 657, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XYZ12345\Downloads\google-cloud-cli-446.0.0-windows-x86_64\google-cloud-sdk\lib\third_party\requests\adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='dl.google.com', port=443): Max retries exceeded with url: /dl/cloudsdk/channels/rapid/components-2.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000029282907F90>, 'Connection to dl.google.com timed out. (connect timeout=60)'))
Google Cloud CLI installer will now exit.
Press any key to continue . . .
The error message Connection to dl.google.com timed out. (connect timeout=60) indicates that the Google Cloud CLI installer is unable to connect to the Google Cloud servers. This can be caused by a number of factors, including:
To troubleshoot this problem, you can try the following:
If you are still having problems, you can contact Google Cloud support for assistance.
Here are some additional tips:
If you are still having problems, you can try installing the Google Cloud CLI using a different method, such as using the Google Cloud SDK package manager.
I have the same issue the above solution didn't work for me