title: VS Code can't find activated virtualenv
body: <p>I am trying to run some Python code in Visual Studio Code.  When I first save the file, say to fibonacci.py, I get a popup window that says,</p>
  
  <pre><code>    Linter pylint is not installed.
  </code></pre>
  
  <p>It also displays three buttons: Install, Disable pylint, and Disable linting.  If I click Install, I get the following error message:</p>
  
  <pre><code>    $ /Users/me/.pyenv/versions/3.6.5/bin/python -m pip -U pylint
      Could not find an activated virtualenv (required).
  </code></pre>
  
  <p>I can't see to get rid of this error message.</p>
  
  <p>Here were the steps I took to set up my project:</p>
  
  <ol>
  <li>Installed the Python 3.6.5 interpreter: <code>pyenv install 3.6.5</code>.</li>
  <li>Created a directory for the project.</li>
  <li>Changed to that directory and ran <code>pyenv local 3.6.5</code> to set the interpreter for that folder.  This created a .python-version file containing the string "3.6.5" as expected.</li>
  <li>Also created a virtualenv by running <code>pyenv virtualenv 3.6.5 py365</code> and <code>pyenv activate py365</code>.</li>
  <li>Opened the directory in VS Code: <code>code .</code></li>
  <li>From the Command Palette, I selected <code>Python: Select interpreter</code> and selected the interpreter for the folder that I set above in step 3.</li>
  <li>From the Command Palette, I then ran <code>Python: Create Terminal</code> to open a terminal window.</li>
  </ol>
  
  <p>It's at this point that if I create a new file and save it as fibonacci.py that I get the Linter message and the subsequent error message when I try to install the linter.</p>
  
  <p>What's confusing to me is that the Code documentation <a href="https://code.visualstudio.com/docs/python/environments#_activate-an-environment-in-the-terminal" rel="nofollow noreferrer">Activate an environment in the Terminal</a> talks about selecting an interpreter but then it seems to refer to the interpreter as an environment too.  I thought that those are two different things, the interpreter being the Python interpreter and the environment the virtual environment where the packages you want to use for your project are installed.  The doc goes on to say you should use "Python: Create Terminal" to automatically activate the environment, but I did that in step 7 above.</p>
  
  <p>Furthermore, the next paragraph "Where the extension looks for environments" says one of the locations is "Interpreters installed by pyenv".  But as I said above, I used pyenv to specify the 3.6.5 interpreter which created the .python-version file in the project folder.  Isn't this what the document is talking about?</p>
  
  <p>What am I not understanding?</p>