VSCode doesn't show poetry virtualenvs in select interpreter option VSCode doesn't show poetry virtualenvs in select interpreter option python python

VSCode doesn't show poetry virtualenvs in select interpreter option


You just need to type in your shell:

poetry config virtualenvs.in-project true

The virtualenv will be created inside the project path and vscode will recognize.


If you already have created your project, you need to re-create the virtualenv to make it appear in the correct place:

poetry env list  # shows the name of the current environmentpoetry env remove <current environment>poetry install  # will create a new environment using your updated configuration


You need to set "python.venvPath": "C:\\Users\\Jaepil\\AppData\\Local\\pypoetry\\Cache\\virtualenvs" in your settings (the one you tried is for UNIX).

You can also 👍 https://github.com/microsoft/vscode-python/issues/8372 to help prioritize adding Poetry virtual environment support to the Python extension.


You can add your virtualenvs folder to "python.venvFolders" in vs code global settings.

Like that for Windows:

"python.venvFolders": [    "C:\\Users\\User\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\"  ]