'unable to equate module path in python 3 to same folder.Module error?

Windows(OS) user

I have pip installed and pip3 installed as well through conda prompt. The libraries are getting installed in a folder in my pc. Path - C:\Users\hh\Anaconda3\Lib\site-packages\xlrd

But i dont think this is the same path which my ide is picking up for libraries because im still receiving module not found error

when i do sys.path i get

sys.path Out[25]:

['',
 'C:\\Users\\hh\\AppData\\Local\\Programs\\Spyder\\Python\\python38.zip',
 'C:\\Users\\hh\\AppData\\Local\\Programs\\Spyder\\Python',
 'C:\\Users\\hh\\AppData\\Local\\Programs\\Spyder\\pkgs',
 'C:\\Users\\hh\\AppData\\Local\\Programs\\Spyder\\pkgs\\IPython\\extensions',
 'C:\\Users\\hh\\.ipython']

How do I make sure my IDE(SPyder) picks up the libraries from the correct path so that i dont get the module not found error even though its installed



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source