Skip to content

Python intellisense not working for imports using PYTHONPATH #8301

@StellaHuang95

Description

@StellaHuang95

Moved from developer community. https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2538598

In python when editing intellisense fails to see modules specified relative to PYTHONPATH, but works for modules relative to the one being edited.
I have tried using a .env file to specify PYTHONPATH, and also adding the path to the Search Paths section of the project, in both cases the file is ale to execute correctly, I am also able to right click on an entry in Search Paths and open a command window to verify the location, but intellisense always ignores these settings.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions