install python 3.7 in virtual environment code example
Example 1: how to create environment in python3.7
# by runnin this command you can directly create python environment in with python3.7 version
python3.7 -m venv <venv_name>
Example 2: venv
python -m venv c:\path\to\myenv
Example 3: create a virtualenv python3
py -m venv env
Example 4: creating a virtual environment in python 3.8
c:\>python -m venv c:\path\to\myenv