I just upgraded from version 412.0.0 to 452.0.0 of the gcloud CLI, and now no gcloud commands work, they keep failing with the error: /Users/user/google-cloud-sdk/bin/gcloud: line 206: exec: python: not found
I do have python3 installed (python3 --version returns Python 3.11.4), but I donβt have anything with the alias of just python.
I suspect that something changed between 412.0.0 and 452.0.0 with how the CLI references the python executable.
I tried downgrading using gcloud components update --version 412.0.0 but unfortunately keep getting the same error.
Here is the full log from my terminal:
β gcloud components update
To help improve the quality of this product, we collect anonymized usage data and anonymized stacktraces when crashes are encountered; additional information is available at
<https://cloud.google.com/sdk/usage-statistics>. This data is handled in accordance with our privacy policy <https://cloud.google.com/terms/cloud-privacy-notice>. You may choose to
opt in this collection now (by choosing 'Y' at the below prompt), or at any time in the future by running the following command:
gcloud config set disable_usage_reporting false
Do you want to opt-in (y/N)? n
Beginning update. This process may take several minutes.
Your current Google Cloud CLI version is: 412.0.0
You will be upgraded to version: 452.0.0
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β These components will be updated. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββ¬βββββββββββ€
β Name β Version β Size β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββΌβββββββββββ€
β BigQuery Command Line Tool β 2.0.98 β 1.6 MiB β
β BigQuery Command Line Tool (Platform Specific) β 2.0.98 β < 1 MiB β
β Cloud Storage Command Line Tool β 5.26 β 11.3 MiB β
β Cloud Storage Command Line Tool (Platform Specific) β 5.26 β < 1 MiB β
β Google Cloud CLI Core Libraries β 2023.10.23 β 22.0 MiB β
β Google Cloud CLI Core Libraries (Platform Specific) β 2023.10.23 β < 1 MiB β
β anthoscli β 0.2.42 β 66.8 MiB β
β gcloud cli dependencies β 2023.10.23 β 11.7 MiB β
β gke-gcloud-auth-plugin β 0.5.6 β 7.4 MiB β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββ΄βββββββββββ
A lot has changed since your last upgrade. For the latest full release notes,
please visit:
https://cloud.google.com/sdk/release_notes
Do you want to continue (Y/n)? y
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β Creating update staging area ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: BigQuery Command Line Tool ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: BigQuery Command Line Tool (Platform Sp... ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: Cloud Storage Command Line Tool ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: Cloud Storage Command Line Tool (Platfo... ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: Google Cloud CLI Core Libraries ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: Google Cloud CLI Core Libraries (Platfo... ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: anthoscli ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: gcloud cli dependencies ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Uninstalling: gke-gcloud-auth-plugin ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: BigQuery Command Line Tool ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: BigQuery Command Line Tool (Platform Spec... ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: Cloud Storage Command Line Tool ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: Cloud Storage Command Line Tool (Platform... ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: Google Cloud CLI Core Libraries ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: Google Cloud CLI Core Libraries (Platform... ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: anthoscli ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: gcloud cli dependencies ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Installing: gke-gcloud-auth-plugin ββ£
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β Creating backup and activating new installation ββ£
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Performing post processing steps...done.
Update done!
To revert your CLI to the previously installed version, you may run:
$ gcloud components update --version 412.0.0
β gcloud components install gke-gcloud-auth-plugin
/Users/user/google-cloud-sdk/bin/gcloud: line 206: exec: python: not found