Most "missing import" errors are solved by simply telling VS Code which Python executable to use.
If you search for this issue, you’ll find it’s a "hot" topic in the Python community. The code works, but the developer experience is broken. Here is the breakdown of why this happens and the two-minute fix to get your IntelliSense back.
Look for an entry that includes your project name and mentions or a path like .venv .
[tool.poetry.dependencies] python = "^3.11" core = path = "./core", develop = true
After switching interpreter: Ctrl+Shift+P → Developer: Reload Window .