windows virtual environment code example
Example 1: create a venv
# Create the virtual environment.
python -m venv venv
# Activate the env.
venv\Scripts\activate.bat
Example 2: create venv in windows
# windows
python -m venv <venv-name>
# To activate
#C:\Users\..\<venv-name>
.\Scripts\activate.bat
Example 3: activate virtualenv windows
venv\Scripts\activate
Example 4: how to use virtual environment python
python3 -m venv env
Example 5: activate virtual environment on windows
venv\Scripts\activate.bat