virtualenv for Python

Install:

# pip install virtualenv

or, if you have Python 3.x installed, and want to use Python 2.x:

# pip2 install virtualenv

If you don’t have pip, you can install it with:

# pacman -S python2-pip // For python 2.x
# pacman -S python-pip  // For python 3.x

Create a new project:

$ virtualenv <project_name>

Activate project:

$ source <project_name>/bin/activate

Deactivate project (must be run from within active project):

$ deactivate