title: How do I activate my conda environment for VS Code python debugger and testing?
body: <p>When I try to run the debugger:</p>
  <pre><code>C:\Users\Philip\OneDrive\Betting\Capra\Tennis\polgara&gt; cmd /C &quot;C:/Users/Philip/miniconda3/envs/capra/python.exe c:\Users\Philip\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\lib\python\debugpy\launcher 53607 -- c:\Users\Philip\OneDrive\Betting\Capra\Tennis\polgara\updater.py &quot;
  C:\Users\Philip\miniconda3\envs\capra\lib\site-packages\numpy\__init__.py:138: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
    from . import _distributor_init
  </code></pre>
  <p>I've worked out that if I install <code>numpy</code> into my <code>base</code> environment then I can get around the error. The question is how to activate the <code>capra</code> environment for the debugger?</p>
  <p>I've tried following the <a href="https://code.visualstudio.com/docs/python/environments#_choose-a-debugging-environment" rel="nofollow noreferrer">guidance</a> from VS Code:</p>
  <pre><code>1. pythonPath property of the selected debug configuration in launch.json
  </code></pre>
  <p>My <code>launch.json</code> file:</p>
  <pre><code>{
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          {
              &quot;name&quot;: &quot;Python: Current File&quot;,
              &quot;type&quot;: &quot;python&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;program&quot;: &quot;${file}&quot;,
              &quot;console&quot;: &quot;integratedTerminal&quot;,
              &quot;pythonPath&quot;: &quot;C:/Users/Philip/miniconda3/envs/capra/python.exe&quot;
          }
      ]
  }
  </code></pre>
  <p>Next:</p>
  <pre><code>2. python.pythonPath setting in the workspace settings.json
  </code></pre>
  <p>I restart <code>VS Code</code> and get:</p>
  <pre><code>We removed the &quot;python.pythonPath&quot; setting from your settings.json file as the setting is no longer used by the Python extension. You can get the path of your selected interpreter in the Python output channel. [Learn more](https://aka.ms/AA7jfor).
  </code></pre>
  <p>Lastly:</p>
  <pre><code>3. python.pythonPath setting in the user settings.json
  </code></pre>
  <p>My user settings file:</p>
  <pre><code>{
      &quot;terminal.integrated.shell.windows&quot;: &quot;C:/WINDOWS/System32/cmd.exe&quot;,
      &quot;kite.showWelcomeNotificationOnStartup&quot;: false,
      &quot;python.venvPath&quot;: &quot;C:/Users/Philip/miniconda3/envs/capra&quot;,
      &quot;python.pythonPath&quot;: &quot;C:/Users/Philip/miniconda3/envs/capra/python.exe&quot;,
      &quot;terminal.integrated.automationShell.windows&quot;: &quot;C:/WINDOWS/System32/cmd.exe&quot;,
      &quot;python.autoComplete.extraPaths&quot;: [
      
      ]
  }
  </code></pre>
  <p>Still get the same numpy error.</p>
  <p>Worth mentioning that I get exactly the same error when I look at the <code>Python Test Log</code> output after trying to discover tests.</p>