venv windows code example
Example 1: python virtual environment
python3 -m venv env
python -m virtualenv env
source env/bin/activate
Example 2: create venv in windows
python -m venv <venv-name>
.\Scripts\activate.bat
Example 3: creating venv python3
mkdir project_folder
cd project_folder
python3.7 -m venv myvenv
virtualenv myvenv --python=python3.7
source myvenv/bin/activate
Example 4: activate virtualenv windows
venv\Scripts\activate
Example 5: create virtual environment python 3
python3 -m venv /path/to/new/virtual/environment
Example 6: python virtual environment
source env/bin/activate