title: Python script runs from terminal in virtual environment, but fails to find pandas with VS Code play button
body: <p>I am new to VS Code.  I have created a virtual environment and selected that as the interpreter, in which I have run</p>
  <pre><code>pip install -r requirements 
  </code></pre>
  <p>from the terminal which allowed for pandas to be installed in that virtual environment (I believe based on <a href="https://code.visualstudio.com/docs/python/environments#_environments-and-terminal-windows" rel="nofollow noreferrer">the docs</a></p>
  <p>From that directory in the terminal, I ran</p>
  <pre><code>python myscript.py
  </code></pre>
  <p>It works.  Generates the output as it should.</p>
  <p>I then try to run the same script in the window above and I get the error, no module named pandas. I have not changed the interpreter.
  <a href="https://i.stack.imgur.com/Cj7Ie.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cj7Ie.png" alt="enter image description here" /></a>
  <strong>UPDATE</strong>
  When closing the terminal and then attempting to run the code from the explorer/deug window, I received a failure to run scripts notice.  I therefore (based on <a href="https://stackoverflow.com/questions/18713086/virtualenv-wont-activate-on-windows">this post</a> changed my Execution Policies in Windows Shell (separate, not in VS terminal), and now it at least goes into the environment, however I still get the same error, pandas unknown.
  <a href="https://i.stack.imgur.com/3RcVf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3RcVf.png" alt="enter image description here" /></a></p>
  <p><strong>UPDATE 2</strong>
  I noticed in the tutorial that they created the directory and then created the environment within that.  I moved my code to be under the virtual environment I created and then it works, both from the terminal and from the debug/explorer window.  However here I noticed that the intrepetor is not characterised as a virtual environment but instead looks like the standard version- now there is no option for me to select working_env as an interpretor.<br />
  Running pip freeze shows the latest version of pandas which is not what I have installed elsewhere for instance.  So this works, but I am now not sure if this is really how I should be using virtual environments.</p>
  <p>**UPDATE 3
  For whatever reason I can now update the interpreter.  When I do however I am back to where I was.  I can run the program in the terminal with the interpreteter selected, but running from the debug window I get the error that pandas is missing.  Trying to install pandas I am told the requirement is satisfied. Running pip freeze confirms that this is installed.  I have the feeling I am somehow installing pandas not in the environment I want
  <a href="https://i.stack.imgur.com/K7eTJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K7eTJ.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/rSiFB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rSiFB.png" alt="enter image description here" /></a></p>
  <p>What have I missed in my vscode setup?</p>