Skip to content

Instantly share code, notes, and snippets.

@pumpkinpietea
Last active June 7, 2020 03:18
# python コマンドは、2.7.16
-> % python
Python 2.7.16 (default, Jan 27 2020, 04:46:15)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
# それは、以下のPATHのことなので
-> % /usr/bin/python
Python 2.7.16 (default, Jan 27 2020, 04:46:15)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
# .zprofile に、Pathを明示する
-> % echo 'export CLOUDSDK_PYTHON=/usr/bin/python' >>.zprofile
# ログインし直すと!! エラーは消えた
-> % gcloud compute instances -h
Usage: gcloud compute instances [optional flags] <group | command>
group may be network-interfaces | os-inventory
command may be add-access-config | add-iam-policy-binding |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment