Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GCP Sdk not installing

Unable to install GCP sdk. Giving error message as mentioned below.. Can someone please help me its blocking .. unable to find resolution.

Error1:   File "C:\Users\BH17884\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\requests\adapters.py", line 514, in send

    raise SSLError(e, request=request)

requests.exceptions.SSLError: HTTPSConnectionPool(host='dl.google.com', port=443): Max retries exceeded with url: /dl/cloudsdk/channels/rapid/components-2.json (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

Failed to install.

Error2:

  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\config.py", line 198, in EnsureSDKWriteAccess

    raise exceptions.RequiresAdminRightsError(sdk_root)

googlecloudsdk.core.exceptions.RequiresAdminRightsError: You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk].

Click the Google Cloud SDK Shell icon and re-run the command in that window, or re-run the command with elevated privileges by right-clicking cmd.exe and selecting "Run as Administrator".

0 4 3,217
4 REPLIES 4

@sumamacys Did you find solution please. I have same issue

@CharlesKdid you find a way to fix this? got same error.

I guess I kind of found the problem, it is something in my network (not sure what though..). I had to connect to a VPN and it worked.

when you are running your powershell, right click and run as administrator. It worked for me.