install virtualenv python2 code example
Example 1: install virtualenv
pip install virtualenv
activate it by doing this:
cd myproject/Scripts/activate
Example 2: virtualenv python2
virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Example 3: virtual env python 2
virtualenv -p C:\Python27\python.exe venv
.\venv\Scripts\activate