google cloud sdk: set environment variable_ python --> linux

前端 未结 3 1651
梦谈多话
梦谈多话 2021-01-05 01:21
ERROR: Python 3 is not supported by the Google Cloud SDK.  Please use a Python 2.x version that is 2.6 or greater.

If you have a compatible Python interpreter insta         


        
3条回答
  •  孤城傲影
    2021-01-05 01:55

    I see this almost every time I update gcloud SDK, especially when running dev_appserver.py

    I found that setting the CLOUDSDK_PYTHON env variable to 'python2' seems to silence the error. E.g on macOS:

    export CLOUDSDK_PYTHON=python2

    Not sure why they simply cannot make this dev server compatible with Python 3 already

提交回复
热议问题