1# windows
2python -m venv <venv-name>
3# To activate
4#C:\Users\..\<venv-name>
5.\Scripts\activate.bat
1#in the terminal
2cd_yourdir
3>pip install virtualenv
4>virtualenv "__" #(any name on the place of string whatever you want)
5E.G.
6> virtualenv venv
7>D:Projectdir/venv/scripts/activate.bat
8 DONE !!!
9# It will look like this now
10
11(venv) D:/projectdir>
1for windows
2make a directory using mkdir nameofthedirectory
3enter the directory using cd
4then enter the following :
5>pip install virtualenv
6then name the virtualenv
7>virtualenv somename
8then activate the virtualen
9on Windows, virtualenv creates a batch file
10
11>\yourvirtuallenname \Scripts\activate.bat