0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

dev_appserver.py app.yamlのコマンドエラー

Posted at

Google Cloud CLIに含まれるローカル開発用サーバーコマンドを使用する際にpythonコマンドが見つからないエラーの解消。

$ dev_appserver.py app.yaml
/usr/bin/env: `python': そのようなファイルやディレクトリはありません

シンボリックリンクを作成。

$ which python3
/usr/bin/python3
$ sudo ln -s /usr/bin/python3 /usr/local/bin/python

デフォルトだとpython2を使用するためCLOUDSDK_PYTHONの環境変数を追加する。

$ dev_appserver.py app.yaml                    
ERROR: (dev_appserver) python2: command not found
$ echo 'export CLOUDSDK_PYTHON="/usr/bin/python3"' >> ~/.zshrc
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?