create a virtual environment with an older version of python code example Example: start virtualenv with python version python3 -m venv <myenvname>