activate venv on windows code example

Example 1: create a venv

# Create the virtual environment.
python -m venv venv

# Activate the env.
venv\Scripts\activate.bat

Example 2: how to activate a venv in windows

\env\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: venv

python -m venv c:\path\to\myenv

Example 6: activate virtual environment in windows

.\env\Scripts\\activate.bat