3

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

1 Answer 1

6

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you that worked. So simple. All my searches indicated the full path.
I'm completely lost. It's not gonna work if I just specify the full path to it?
The answer means that you should specify the path of the parent folder of some virtual env.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.