How to use different Python version with virtualenv

If you have different version of python installed on your machine and you wanna start a enviroment with a specific version you can run the following command:

virtualenv -p /usr/bin/python2.7 <path/to/new/virtualenv/>

-p indicate to virtualenv which version of python use

source