VsCodeデバッグでエラー

VsCodeのpythonデバッグでエラーが発生した。

Preparing to run teams.lambda_handler locally...
Building SAM Application...
An error occurred trying to run SAM Application locally: Error with child process: pyenv: sam: command not found
,
The `sam' command exists in these Python versions:
,  3.7.0

pythonはインストールされていたはずだったがpyenvに設定して回避できた

a$ python3 --version
Python 3.7.0
$ pyenv global system 3.7.0

Published by

kashioka

有限会社アリウープ 代表取締役社長 PHPユーザ会の発起人の一人。いちばんやさしいPHPの教本(インプレス),PHPハンドブック(ソフトバンククリエイティブ)著者。PHPカンファレンス実行委員 明日の開発カンファレンス開催 認定スクラムマスター。近年、PHPに限らずサーバレス環境でのPythonなども書いたりしている。 http://alleyoop.jp