Is there any way to use gcloud with python3?

后端 未结 5 1420
误落风尘
误落风尘 2021-02-05 01:29

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

5条回答
  •  轮回少年
    2021-02-05 01:49

    I worked around this issue by specifying the path to Python 2 (that I named python2 on my system).

    $ export CLOUDSDK_PYTHON=$(which python2)
    $ ./install.sh
    

    I suggest adding the export to your .bashrc or .zshrc file.

提交回复
热议问题