gcloud-python and gcloud-cli, as in the Cloud SDK, are somewhat unrelated products. It is true that you need python 2.7.x to run gcloud-cli, but that does not stop you from using python3 with the gcloud-python library.
If you install multiple versions of python 2.7x and 3.5, for example (you can even make python3 the default) while you set the CLOUDSDK_PYTHON environment variable to point to the python 2.7.x interpreter, you should be able to run gcloud-cli while using python3 for your project.
On Windows, for example, the Cloud SDK packs its own python, which does not conflict with any other version that you might have on your system. This is a pure runtime dependency for gcloud-cli.
cherba
source share