Python virtualenv and PowerShell

It’s quite easy to set up virtual environment with isolated packages for Python in PowerShell.

Creating virtual environment is the same like in any other shell. Let’s call this environment pyenv:

pip install virtualenv
virtualenv pyenv

The last step is to activate this environment in PowerShell (watch dots and spaces):

. .\pyenv\Scripts\activate.ps1

You should see name of your virtual environment in command line. Virtual environment is active.

Facebook Comments
Rating: 2.6/5. From 17 votes.
Please wait...

26. May 2013 at 12:48 - Software engineering (Tags: , , , ). Both comments and pings are currently closed.

Comments are closed.