virtualenv venv python windows code example
Example 1: create venv in windows
# windows
python -m venv <venv-name>
# To activate
#C:\Users\..\<venv-name>
.\Scripts\activate.bat
Example 2: activate virtualenv windows
venv\Scripts\activate
Example 3: activate virtual environment on windows
venv\Scripts\activate.bat
Example 4: pip install virtualenv windows
py -m pip install --user virtualenv
Example 5: activate virtual environment in windows
.\env\Scripts\\activate.bat
Example 6: pip install virtualenv windows
python3 -m venv env