Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.21 KB

anaconda_environments.md

File metadata and controls

27 lines (17 loc) · 1.21 KB
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:

  1. Open the command palette by clicking on the gear in the bottom left and choose "Command Palette..." (or by using a keyboard shortcut): open the command palette

  2. Search and select the entry "Open User Settings (JSON)" open user settings

  3. Add the option to set the conda path:

    "python.condaPath": "/Users/aboettcher/opt/anaconda3/bin/conda"

  4. Open again the command palette (Step 1) and search and select for "Pyton: select interpreter"

    open user settings

  5. Select python environment: open user settings

Source: Medium