On Windows: %USERPROFILE%\AppData\Local\pypoetry\Cache\virtualenvs
This issue is frequently encountered ("hot") because Pylance and Poetry have different default behaviors regarding virtual environments. pylance missing imports poetry hot
Now, let's get to the issue at hand. When using Pylance, Poetry, and hot reloading together, you might encounter a frustrating problem: Pylance reports missing imports, even though you've correctly installed the dependencies using Poetry. This issue can occur when you're using Poetry to manage your dependencies and Pylance to manage your project's imports. This issue can occur when you're using Poetry
Poetry isolates project dependencies by creating a dedicated virtual environment for each project. These environments are usually hidden deep inside your system cache directory. Create or modify the [tool
Create or modify the [tool.pyright] section in your pyproject.toml file to manage which files Pylance analyzes.
# Delete the old global env (optional but clean) poetry env remove --all