how to activate virtual environment in python windows 10 code example

Example 1: create a venv

# Create the virtual environment.
python -m venv venv

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

Example 2: activate virtualenv windows

venv\Scripts\activate

Example 3: activate virtual environment python

source virtual/bin/activate

Example 4: how to activate virtual environment in python windows 10

name_of_env\Scripts\activate

Example 5: activate virtual environment python windows 10

cd C: Path to virtual environment> .\activate

Tags:

Misc Example