virtualenv python 2.7 code example
Example 1: python virtual env
$ cd project_folder
$ virtualenv venv
Example 2: virtualenv python2
virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Example 3: how to check the existing virtual environments
lsvirtualenv -l
Example 4: python virtual env
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
Example 5: python virtual env
$ source venv/bin/activate
Example 6: python virtual env
$ pip install --user pipenv