Use virtualenv with Python with Visual Studio Code

With the latest update to the extension all you need to do is just specify the "python.pythonPath" as follows.

The values for "python.autoComplete.extraPaths" will be determined during runtime, but you are still free to specify custom paths in there.

Please, remember to restart Visual Studio Code once the necessary changes have been made.

{
    "python.pythonPath": "~/dev/venvs/proj/bin/python"
}

Leave a Comment