Agent_15x
Agent_15x

Reputation: 383

Setting python.venvPath has no effect

After setting python.venvPath to:
"python.venvPath": "/home/jfb/EVs/env/bin/python3" and restarting vs code the virtual environment does not show up in the list of Python interpreters. All the search results I have read seem to say this is all that is needed to have the virtual environment version of python show up in the list of interpreters.

Using vs code vers 1.20.1 on Mint 18.

It seems so simple so what am I missing.

Regards, Jim

Upvotes: 3

Views: 8280

Answers (1)

4ndt3s
4ndt3s

Reputation: 3467

From vscode settings help:

Path to folder with a list of Virtual Environments (e.g. ~/.pyenv, ~/Envs, ~/.virtualenvs).

You should put:

"python.venvPath": "/home/jfb/EVs"

Reload vscode window and try again.

Upvotes: 6

Related Questions