using python virtualenv code example
Example 1: how to create a virtual environment in python
source env/bin/activate
Example 2: python virtual env
$ virtualenv -p /usr/bin/python2.7 venv
source env/bin/activate
$ virtualenv -p /usr/bin/python2.7 venv