Search code examples
pythonvisual-studio-codeide

Visual Studio code not connecting directories/references from imported packages


Usually with an IDE, when the Python interpreter is set to the anaconda python.exe file, and the environment is correct, the imported packages can be easily referenced and the IDE will acknowledge them. But, I am getting no references to packages installed. The code runs, when I run the python package, but I cannot look back at where certain classes/functions/etc. come from.

Does anyone know how I can fix this? Here is an image of what I mean:

enter image description here


Solution

  • You need to install the Python extension and select the correct interpreter.

    enter image description here