virtualenv

virtualenv lets you create virtual Python environments. Everything you install or remove in that environment stays there and other environments are not affected.

Most importantly, you don’t pollute the global package directory of your system.

Create an Environment

virtualenv my_blog_environment

Exploring the Virtual Environment

cd my_blog_environment/
source bin/activate

The activate script will also modify your shell prompt to indicate which environment is currently active.

To undo these changes to your path (and prompt), just run:

deactivate