Virtualenv & pip cheat-sheet
15 Dec 2012Here are a couple of the common commands I need day-to-day in order to navigate around virtualenv.
# Creating a new virtual envrionment
$ virtualenv env
# Using a virtual environment
$ source env/bin/activate
# Getting out of a virtual environment
$ deactivate
# Re-hydrating a requirements file into your environment
$ pip install -r requirements.txt
# Serializing all of your environment's packages into a requirements file
$ pip freeze > requirements.txt
That’s some basics that will get you up and running.