how to switch from virtual environment python code example
Example 1: python virtual env
$ pip install virtualenv
Example 2: python virtual env
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
$ pip install virtualenv
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7