how to install pip virtualenv accordin to specific python version code example Example: start virtualenv with python version python3 -m venv <myenvname>