title: How do I setup virtualenvwrapper for Windows PowerShell?
body: <p>I have this installed</p>
  
  <ul>
  <li>on Windows 7</li>
  <li>Python 2.7.6 (my default, with virtualenv installed)</li>
  <li>Python 2.4.4</li>
  <li>Python 2.5.4</li>
  <li>Python 2.6.6</li>
  <li>Python 3.3.3</li>
  <li>virtualenv 1.10.1</li>
  <li>virtualenvwrapper_powershell-12.7.8-py2.7</li>
  </ul>
  
  <p>I want to test code on all of those python installations.</p>
  
  <p>(Related question about missing support for Python 2.4./2.5: 
  <a href="https://stackoverflow.com/questions/20584478/how-do-i-setup-virtualenv-environments-for-python-2-4-and-2-5-versions-on-window">How do I setup virtualenv environments for Python 2.4 and 2.5 versions on Windows?</a> )</p>
  
  <p>This is what I tried so far:</p>
  
  <p><strong>Trying virtualenv directly:</strong></p>
  
  <p>Python 2.6 works as expected:</p>
  
  <pre><code>C:\Users\martin\.virtualenvs&gt;virtualenv -p c:\apps\Python26\python.exe env26
  Running virtualenv with interpreter c:\apps\Python26\python.exe
  New python executable in env26\Scripts\python.exe
  Installing Setuptools..............done.
  Installing Pip.............done.
  
  C:\Users\martin\.virtualenvs&gt;env26\Scripts\activate
  (env26) C:\Users\martin\.virtualenvs&gt;python
  Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
  win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Python 2.7 and 3.3 also work as expected.</p>
  
  <p><strong>Trying virtualenvwrapper:</strong></p>
  
  <p>Python 2.6, 2.7, and 3.3 work as expected:</p>
  
  <pre><code>C:\Users\martin\.virtualenvs&gt;mkvirtualenv -p c:\apps\Python26\python.exe env26_w
  
  Running virtualenv with interpreter c:\apps\Python26\python.exe
  New python executable in env26_w\Scripts\python.exe
  Installing Setuptools.........done.
  Installing Pip................done.
  
  (env26_w) C:\Users\martin\.virtualenvs&gt;python
  Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
  win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
  </code></pre>
  
  <p><strong>Trying virtualenvwrapper on Powershell:</strong></p>
  
  <p>Creating and activating Python 2.6 does not give an error, but starts Python27 
  when activated:</p>
  
  <pre><code>PS C:\Users\martin&gt; mkvirtualenv -p C:\apps\Python26\python.exe env_26_ps
  New python executable in env_26_ps\Scripts\python.exe
  Installing Setuptools........done.
  Installing Pip.......................done.
  Added activation script por Powershell to C:\Users\martin\.virtualenvs/env_26_ps\Scripts.
  (env_26_ps)PS C:\Users\martin&gt; python
  Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt;
  </code></pre>
  
  <p>The <code>env_26_ps\Scripts</code> folder contains files like <code>pip-2.7.exe</code> and <code>python.exe</code> (2.7).</p>
  
  <p>Similar behavior for Python 3.3</p>