When VSCode complains that it can't import modules:
Press
Ctrl+Shift+P
and choose "Python: Select interpreter". Then select the correct Python version. If Python2.7 is selected for a Python3 file, it causes errors.
References: PiN73's comment on https://github.com/DonJayamanne/pythonVSCode/issues/394