Mac gcloud install ImportError: No module named __future__

后端 未结 3 1568
难免孤独
难免孤独 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条回答
  •  梦毁少年i
    2021-01-25 08:49

    In google-cloud-sdk/install.sh go to last line, remove variable $CLOUDSDK_PYTHON_ARGS as below.

    "$CLOUDSDK_PYTHON" $CLOUDSDK_PYTHON_ARGS "${CLOUDSDK_ROOT_DIR}/bin/bootstrapping/install.py" "$@"
    
    "$CLOUDSDK_PYTHON" "${CLOUDSDK_ROOT_DIR}/bin/bootstrapping/install.py" "$@"
    

提交回复
热议问题