Having a simple yet confusing issue: a package I added with poetry fails to import when I try to use it in a module. Steps taken:
poetry add sendgrid- In a module,
import sendgrid - Error:
Import "sendgrid" could not be resolved PylancereportMissingImports
Troubleshooting I've tried:
- I checked my project's poetry venv dir, and sendgrid is there:
'C:\\Users\\xyz123\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\nameofproject-py3.10\\lib\\site-packages' - Also checked sys.path(); the path to that site-packages dir is listed
- Running
poetry installgives me the responseNo dependencies to install or update - both the pyproject.toml and the poetry.lock files list sendgrid
What is going on?