how to install python 3.6 in virtual environment code example Example: start virtualenv with python version python3 -m venv <myenvname>