title: Visual Studio Code terminal doesn't activate Conda environment
body: <p>I read <a href="https://stackoverflow.com/questions/43351596/activating-anaconda-environment-in-vscode">this Stack Overflow post</a> on a similar issue, but the suggestions there don't seem to be working. I installed Visual Studio Code on my Windows machine and added the Python extension. Then I changed the Python path for my project to <code>C:\Users\username\.conda\envs\tom\python.exe</code>. The <code>.vscode/settings.json</code> has this in it:</p>
  <pre><code>{
      &quot;python.pythonPath&quot;: &quot;C:\\Users\\username\\.conda\\envs\\tom\\python.exe&quot;
  }
  </code></pre>
  <p>The status bar in Visual Studio Code also shows:</p>
  <p><a href="https://i.stack.imgur.com/SkJrF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SkJrF.png" alt="Enter image description here" /></a></p>
  <p>But when I do <code>conda env list</code> even after doing <code>conda activate tom</code> in the terminal I get the output:</p>
  <pre><code># conda environments:
  #
  base                  *  C:\ProgramData\Anaconda3
  tom                      C:\Users\username\.conda\envs\tom
  </code></pre>
  <p>Instead of:</p>
  <pre><code># conda environments:
  #
  base                     C:\ProgramData\Anaconda3
  tom                   *  C:\Users\username\.conda\envs\tom
  </code></pre>
  <p>Also the packages not installed in base don't get imported when I try <code>python app.py</code>. What should I do?</p>
  <p><code>where python</code> runs, but it doesn't give any output.</p>
  <p>Also,</p>
  <pre><code>import os
  import sys
  os.path.dirname(sys.executable)
  </code></pre>
  <p>gives</p>
  <pre><code>'C:\\Python38'
  </code></pre>