7C00.ME/houmu 2014-05-02

virtualenv简要笔记

sudo apt-get install python-pip
sudo vi ~/.pip/pip.ini
## add the following lines:

    [global]
        index-url = http://pypi.douban.com/simple

sudo pip install virtualenv
sudo apt-get install virtualenvwrapper

vi ~/.bashrc
## add the following lines(first line is optional):

    export WORKON_HOME=path/to/some/place
    source /etc/bash_completion.d/virtualenvwrapper


mkvirtualenv env1 --no-site-package
workon env1
deactive