set up and activate virtual environment python 2.7 code example
Example 1: python virtual env
$ virtualenv -p /usr/bin/python2.7 venv
Example 2: virtual environment python
source env/bin/activate
$ virtualenv -p /usr/bin/python2.7 venv
source env/bin/activate