title: DLL load failed: The specific module could not be found (VSCode, Numpy)
body: <p>Error occurs upon <code>import numpy as np</code>; command works fine when typed directly in terminal, but fails when ran via <a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner" rel="nofollow noreferrer">Code Runner</a>. My steps to reproduce below.</p>
  
  <p>Output of <code>import sys; print(sys.version)</code> is <code>3.7.5 (default, Oct 31 2019, 15:18:51) [MSC v.1916 64 bit (AMD64)]</code>. VSCode shows it's running the expected Python interpreter: <code>Python 3.7.5 64-bit ('vsc': conda)</code> at bottom-left pane (see clip). -- Brief <a href="https://www.dropbox.com/s/cu4vzyp8ybdq6qo/np_demo.mp4?dl=0" rel="nofollow noreferrer">video demo</a>. </p>
  
  <p>For a complete list of enabled extensions and contents of <code>settings.json</code>, see <a href="https://github.com/numpy/numpy/issues/15183" rel="nofollow noreferrer">relevant Git</a>. </p>
  
  <p>What is the problem, and how to fix?</p>
  
  <hr>
  
  <p><strong>Env info</strong>: Windows 10 x64, Anaconda 10/19 (virtual env), VSCode 1.41.1</p>
  
  <hr>
  
  <p><strong>Steps to reproduce:</strong></p>
  
  <pre><code>conda create --name vsc
  conda activate vsc
  conda install python==3.7.5
  conda install numpy
  # in VSCode: import numpy as np, etc
  </code></pre>
  
  <hr>
  
  <p><strong>Full traceback</strong>:</p>
  
  <pre class="lang-py prettyprint-override"><code>Traceback (most recent call last):
    File "D:\Anaconda\envs\vsc\lib\site-packages\numpy\core\__init__.py", line 17, in &lt;module&gt;
      from . import multiarray
    File "D:\Anaconda\envs\vsc\lib\site-packages\numpy\core\multiarray.py", line 14, in &lt;module&gt;
      from . import overrides
    File "D:\Anaconda\envs\vsc\lib\site-packages\numpy\core\overrides.py", line 7, in &lt;module&gt;
      from numpy.core._multiarray_umath import (
  ImportError: DLL load failed: The specified module could not be found.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "c:\Desktop\School\Python\vscode\HelloWorld\app.py", line 1, in &lt;module&gt;
      import numpy as np
    File "D:\Anaconda\envs\vsc\lib\site-packages\numpy\__init__.py", line 142, in &lt;module&gt;
      from . import core
    File "D:\Anaconda\envs\vsc\lib\site-packages\numpy\core\__init__.py", line 47, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: 
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong>: added the following to <code>settings.json</code> per James's suggestion:</p>
  
  <pre><code>"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
  "terminal.integrated.shellArgs.windows": ["/K", "D:\\Anaconda\\Scripts\\activate.bat D:\\Anaconda"],
  "python.condaPath": "D:\\Anaconda\\Scripts\\conda.exe"
  </code></pre>