create a python 3.6 virtual environment from with python3.9 code example Example: creating a virtual environment in python 3.8 c:\>python -m venv c:\path\to\myenv