VisualStudioCode で Python 実行時にモジュールが import できない場合の対処法

Visual Studio Code で Python を デバッグ実行したときに、あるはずのモジュールが Import Error になって実行できないときの対処法を説明します。