create virtual environment python in windows code example
Example 1: create a virtualenv python
pip install virtualenv
cd projectfolder
virtualenv projectname
source projectname/bin/activate
Example 2: how to activate a venv in windows
\env\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 virtual environment python windows 10
cd C: Path to virtual environment> .\activate