Virtualenv Cheatsheet

Using multiple Python environments without clutter and mixups: virtualenv.

Quickstart

Installing via pip:

1
$ pip install virtualenv

Creating an environment (this will create a folder with that name):

1
$ virtualenv A_NAME_TO_REPLACE

Activating it:

1
$ source A_NAME_TO_REPLACE/bin/activate

Customizations

Specifying a specific version of Python:

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×

keyboard_arrow_up