This happens because Poetry installs your project in ( -e ). Pylance needs help mapping your source code to the import path. Configure pyrightconfig.json (Pylance's engine) Create a pyrightconfig.json in your project root:
Alternatively, add this to your settings.json : pylance missing imports poetry link
Run this command in your project terminal: This happens because Poetry installs your project in ( -e )
Create a .vscode folder in your project root (if it doesn't exist) and add a settings.json file. Add this configuration to let Poetry tell VS Code where the env is: pylance missing imports poetry link