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.

Rating: 2.4/5. From 11 votes.
Please wait...

Leave a comment

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

Comments are closed.