my first guess would be, that you should specify the correct Python interpreter. MacOS comes with preinstalled version of python3.
In order to specify your interpreter, press command + shift + p and in the prompt write select interpreter. This will print out (some) locations of python3 versions present on your system.
The other way to select an interpreter is in bottom right corner of VS Code.