title: Why doesn't Visual Studio Code recognize my WSL bash python?
body: <p>I am running Visual Studio Code on Windows 10 with WSL bash as its terminal:</p>
  <pre><code>&quot;terminal.integrated.shell.windows&quot;: &quot;C:/Windows/sysnative/bash.exe&quot;
  </code></pre>
  <p>In WSL bash I have both <code>python</code> (v2.7) and <code>python3</code> (v3.6) installed.</p>
  <p>I have installed the Python extension for VS Code. Unfortunately VS Code fails to recognize either version of Python in WSL bash.</p>
  <p>For example when I try to discover tests, I get the following error in the Python Test Log output window:</p>
  <blockquote>
  <p>Test Discovery failed:</p>
  <p>Error: spawn python ENOENT</p>
  </blockquote>
  <p><strong>How can I configure VS Code to work with Python form WSL bash?</strong></p>
  <p>Note: I'm pretty sure I need to configure a path to Python in the <code>&quot;python.pythonPath&quot;</code> key in VS Code's user settings file. I am unsure of which path to put as the value though.</p>