install virtual environment python2 code example Example: virtualenv python2 virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>