Here be some virtualenv commands for my goldfish memory

Dear Nai,

Because you have goldfish memory, here is a blog post to remind yourself of the right commands to use for virtualenv

To create a new virtualenv (and this is assuming you have virtualenv wrapper installed):

mkvirtualenv -p python2.7 –no-site-packages ENV

–no-site-packages starts the virtualenv clean with just python2.7

To list all virtualenvs:


To remove:

rmvirtualenv ENV

Location of virtualenv:


That’s it!

While I’m at it, here are some frequently used pip commands:

pip install -r requirements.txt

pip install –upgrade -r requirements.txt

pip freeze >> requirements.txt

Hang on, how about some db and webserver commands too!

sudo /etc/init.d/postgresql restart

sudo apachectl stop