Chromebookのshellからgcloudコマンドやgsutilコマンドを使いたい!
と切実に思ったのでGoogle Cloud SDKを導入しました。

Google Cloud SDKはPythonが必要なので


crew install python

そしてgcloudのインストーラーを実行。

curl https://dl.google.com/dl/cloudsdk/channels/rapid/install_google_cloud_sdk.bash | bash 

ERROR: Python 3 and later is not compatible with by the Google Cloud SDK. Please use a Python 2.7.x version.

If you have a compatible Python interpreter installed, you can use it by setting
the CLOUDSDK_PYTHON environment variable to point to it.

べ…別のバージョンはインストールできないの…?


$ crew search python
Found python, version 3.3.2

仕方がないので手動でpython 2.7.xを手動でインストールしましょう。

続きを読む