I have a little confused about gcloud with python3
After I installed gcloud in python3 env and I tried to example Quickstart for Python in the App Engine Flexible Enviro
I worked around this issue by specifying the path to Python 2 (that I named python2 on my system).
python2
$ export CLOUDSDK_PYTHON=$(which python2) $ ./install.sh
I suggest adding the export to your .bashrc or .zshrc file.
.bashrc
.zshrc