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

前端 未结 3 1682
梦谈多话
梦谈多话 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:59

    This is a very easy thing to solve. The native python command on the Arch command line is actually for Python 3. The SDK requires Python2.7 and the

    • Just go to the google-cloud-sdk folder and open the install.sh file.

    • Change the CLOUDSDK_PYTHON="python" value to CLOUDSDK_PYTHON="python2.7"

    • Rerun the install with the command

      ./install.sh
      in the same folder and follow the prompts.

    That's all.

提交回复
热议问题