How to load virtual environment for Python on Windows 10 using PowerShell
<p>Following Tyler Butler's <a href="http://www.tylerbutler.com/2012/05/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/" rel="nofollow">post</a>, I was able to install <code>pip</code>, <code>python</code> and <code>virtualenv</code> to my PowerShell. However, I can only enter a virtual environment where I have created it. If I open a new session of Power Shell, <code>workon</code> can only show me the the first virtual environment I that have ever created.</p>

<hr>

<p>The initial loading of the first virtual environment
<a href="http://i.stack.imgur.com/ZXbUp.png" rel="nofollow"><img src="http://i.stack.imgur.com/ZXbUp.png" alt="The initial loading of the first virtual environment"></a></p>

<hr>

<p>Unable to load the existing virtual environment. After specifying <code>workon venv</code>, nothing gets loaded
<a href="http://i.stack.imgur.com/fZqbc.png" rel="nofollow"><img src="http://i.stack.imgur.com/fZqbc.png" alt="Unable to load the existing virtual environment"></a></p>

<hr>

<p>Unable to create the virtual environment under the same name, thus some thing has been in place.
<a href="http://i.stack.imgur.com/V6DwZ.png" rel="nofollow"><img src="http://i.stack.imgur.com/V6DwZ.png" alt="No more venv as new virtual environment"></a></p>

<hr>

<p>After creating several more virtual environment, the <code>workon</code> command can only get me back <code>venv</code> as existing virtual environment.
<a href="http://i.stack.imgur.com/Ei1jq.png" rel="nofollow"><img src="http://i.stack.imgur.com/Ei1jq.png" alt="Nothing else are found as virtual environment"></a></p>

<hr>

<p>Seeking help with getting the virtual environment function working in PowerSheel.</p>

<p>Thanks to the suggestions from: <a href="http://www.voidynullness.net/blog/2014/06/19/install-python-setuptools-pip-virtualenvwrapper-for-powershell-pyside-on-windows/" rel="nofollow">http://www.voidynullness.net/blog/2014/06/19/install-python-setuptools-pip-virtualenvwrapper-for-powershell-pyside-on-windows/</a></p>

<p>Including the following specification to the File <code>~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1</code>, where <code>~</code> stands for the root folder of the user.</p>

<pre><code>Import-Module virtualenvwrapper
</code></pre>

<p>As of now, in the new sessions of the PowerShell, <code>workon</code> functions nicely.</p>

python powershell virtualenv