1# windows
2python -m venv <venv-name>
3# To activate
4#C:\Users\..\<venv-name>
5.\Scripts\activate.bat
1python3 -m venv env
2python -m virtualenv env #py2
3
4source env/bin/activate
5
6#all this is on same directory
7
1pip install virtualenv # install first
2cd projectfolder # go to project folder
3python -m venv ./venv # Create a virtual environment named venv
4Activate.ps1 # (powershell) start the file to start the environment
5activate.bat # (cmd) start the file to start the environment
6# if it worked you'll see a (venv) in front of your cursor path