Friday, January 17, 2014

virtualenv

http://docs.python-guide.org/en/latest/dev/virtualenvs/


http://dabapps.com/blog/introduction-to-pip-and-virtualenv-python/

http://www.virtualenv.org/en/latest/virtualenv.html

1. Make the virtual environment
> mkvirtualenv hello_django/

2. Change to the new virtual environment
> virtualenv hello_django

3. Note that the prompt has changed to the new project virtual name

4. Change to the new virtual encvironment
> (hello_django)[derek@derek-laptop hello_django]$ cd ~/.virtualenvs/hello_django/

5. Deactivate the virtual environment

Usually, activating a virtualenv gives you a command:
$ deactivate
which puts things back to normal.