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
2cd projectfolder #go to project folder
3virtualenv projectname #create the folder projectname
4source projectname/bin/activate
1#Creating a Virtual Environment | Windows 10
2#Proceed to the folder were you want to create your environment, Then enter the following:
3...\> py -m venv project_name
4#To activate the environment, run:
5...\> project_name\Scripts\activate.bat
6#Then install Django using pip
7...\> py -m pip install Django