python 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: how to activate a venv in windows
\env\Scripts\activate.bat
Example 4: activate virtualenv windows
venv\Scripts\activate
Example 5: python create virtualenv
pip install virtualenv
cd projectfolder
python -m venv ./venv
Activate.ps1
activate.bat
Example 6: venv activate windows
cd_yourdir
>pip install virtualenv
>virtualenv "__"
E.G.
> virtualenv venv
>D:Projectdir/venv/scripts/activate.bat
DONE !!!
(venv) D:/projectdir>