Open the Command Palette (Ctrl+Shift+P), then select the Python: Select Interpreter. 然后选择一个python解释器即可; 原文:https://stackoverflow.com/questions/68486207/import-could-not-be-resolved-could-not-be-resolved-from-source-pylance-in-vs-cod