I would say verify your python environments in vscode. It will be displayed in the bottom-left corner of the window. This will show you the list of all the python interpreters installed on your system. So just make sure you are using the correct python interpreter - meaning using python interpreter from the same environment where you installed your library.