Home/pylance missing imports poetry/pylance missing imports poetry

Save the file. Pylance respects this configuration.

If you don't see your Poetry environment listed, click Enter interpreter path... -> Find... and navigate to your project folder. If you have configured Poetry to store virtual environments inside the project (see Solution 4), look for the Scripts/python.exe (Windows) or bin/python (macOS/Linux) file inside the .venv folder.

You get the venv name by running poetry env list .

Find your Poetry venv path:

Sometimes, the imports work when you run the code but fail in the editor. This is often due to how Pylance analyzes the code.

Ready to get started?

Join developers who use Uploadcare to build file handling quickly and reliably.

Sign up for free