Mac gcloud install ImportError: No module named __future__

后端 未结 3 1566
难免孤独
难免孤独 2021-01-25 08:28

When installing gcloud for mac I get this error when I run the install.sh command according to docs here:

Traceback (most recent call last):
  File          


        
3条回答
  •  情歌与酒
    2021-01-25 09:01

    I had the error below when trying to run gcloud commands.

      File "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/gcloud.py", line 20, in 
        from __future__ import absolute_import
    ImportError: No module named __future__
    

    If you have your virtualenv sourced automatically you can specify the environment variable CLOUDSDK_PYTHON i.e. set -x CLOUDSDK_PYTHON /usr/bin/python to not use the virtualenv python.

提交回复
热议问题