how to create virtual environment in python 3.6 8 using terminal code example Example: creating a virtual environment in python 3.8 c:\>python -m venv c:\path\to\myenv