I think it would be good to use export CLOUDSDK_PYTHON=/usr/bin/python (instead of just python) in /etc/profile.d/google-cloud-sdk.sh, so that it would not use the Python binary from $PATH (e.g. an activated virtualenv).
(It is relevant with e.g. gcloud beta compute ssh …, which might suggest to install NumPy, which might be missing in the virtualenv.)
I think it would be good to use
export CLOUDSDK_PYTHON=/usr/bin/python
(instead of justpython
) in/etc/profile.d/google-cloud-sdk.sh
, so that it would not use the Python binary from$PATH
(e.g. an activated virtualenv).(It is relevant with e.g.
gcloud beta compute ssh …
, which might suggest to install NumPy, which might be missing in the virtualenv.)