virtualenv --python=/usr/bin/python2.7 python27 code example Example: start virtualenv with python version python3 -m venv <myenvname>