venv specify python version code example
Example 1: create a venv
# Create the virtual environment.
python -m venv venv
# Activate the env.
venv\Scripts\activate.bat
Example 2: virtualenv specify python version
virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Example 3: start virtualenv with python version
python3 -m venv <myenvname>