3
3

More than 5 years have passed since last update.

Windows 10にGoogle Cloud SDKをinstall

Last updated at Posted at 2019-01-13

インストール失敗

公式のページ通りにやっても、
windows10のPCにGoogle Cloud SDKをインストールがうまくいかなかった。

環境:Windows 10 Pro, 64bit
SDK version:229.0.0

原因

1. pythonエンコーディングエラー

2. バッチファイルで日本語文字のユーザフォルダが読み取れない

  • 発生したエラー

    Welcome to the Google Cloud SDK!
    指定されたパスが見つかりません。

  • 解決

    • 1. installバッチファイルを開く
      • 場所:installフォルダ\google-cloud-sdk\install.bat
      • (例):C:\Users(User名)\AppData\Local\Google\Cloud SDK\google-cloud-sdk\install.bat
    • 2. 47行目を書き換え
      • 修正前
        • SET CLOUDSDK_PYTHON=%%i
      • 修正後:日本語を入れるとエラーが起きたので、相対パスで書きました。
        • SET CLOUDSDK_PYTHON=".\platform\bundledpython\python.exe"
    • 3. install.batの実行
  • 参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3