how to set python2 up in virtualenv code example Example: start virtualenv with python version python3 -m venv <myenvname>