activate virtual environment python2 code example
Example 1: python virtual env
$ virtualenv -p /usr/bin/python2.7 venv
Example 2: python virtual env
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
$ virtualenv -p /usr/bin/python2.7 venv
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7