layout | title | permalink |
---|---|---|
page |
Anaconda environments |
/visual_studio_code/anaconda_environments |
Usually I work with a local Anaconda installation and create virtual envs for different projects. Most of the time Visual Studio Code finds the installed environments and lists them. If the preferred base anaconda installation is not shown in Visual Studio Code it is best to configure it using the user level settings as follows:
-
Open the command palette by clicking on the gear in the bottom left and choose "Command Palette..." (or by using a keyboard shortcut):
-
Add the option to set the conda path:
"python.condaPath": "/Users/aboettcher/opt/anaconda3/bin/conda"
-
Open again the command palette (Step 1) and search and select for "Pyton: select interpreter"
Source: Medium