title: Python 2 and 3 from Powershell
body: <p>I've installed <code>Python 3.5</code> using Anaconda and <code>2.7</code> using the following command:</p>
  
  <pre><code>conda create -n py27 python=2.7 anaconda
  </code></pre>
  
  <p>This successfully installed <code>2.7</code> as a separate environment with the Anaconda3 folder:</p>
  
  <pre><code># original installation path for 3.5
  C:\Users\username\AppData\Local\Continuum\Anaconda3
  
  # path for 2.7 after conda create -n is run
  C:\Users\username\AppData\Local\Continuum\Anaconda3\envs\py27
  </code></pre>
  
  <p>This works great as long as I'm using an IDE like Spyder or IPython Notebook, where I can choose which Python version. However, I have not been able to use <code>py27</code> (<code>Python 2.7</code>) in the PowerShell. I've tried using:</p>
  
  <pre><code>activate py27
  </code></pre>
  
  <p>yet <code>python</code> command still fires up <code>3.5</code> and <code>py27</code> causes this error:</p>
  
  <pre><code>py27 : The term 'py27' is not recognized as the name of a cmdlet, function, script file, or operable program. 
  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  At line:1 char:1 + py27
      + ~~~~ 
      + CategoryInfo   : ObjectNotFound: (py27:String) [], CommandNotFoundException
       + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>I've tried everything I know or have read here on SO, but nothing I've tried has been able to resolve the issue. I'm not sure if this helps, but here is my PATH variable for reference:</p>
  
  <pre><code>C:\Users\username\AppData\Local\Continuum\Anaconda3;C:\Users\username\AppData\Local\Continuum\Anaconda3\Scripts;C:\Users\username\AppData\Local\Continuum\Anaconda3\Library\bin;%SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;[stuff in between];C:\Users\username\AppData\Local\Continuum\Anaconda3\envs\p27;C:\Users\username\AppData\Local\Continuum\Anaconda3\envs\p27\Scripts\;C:\Users\username\AppData\Local\Continuum\Anaconda3\envs\p27\Library\bin
  </code></pre>