1#------FOR LINUX/MAC---------#
2#installing venv
3sudo apt-get install python3.6-venv
4#creating virtual env
5python3 -m venv env
6#activating virtual env
7source env/bin/activate
8
9
10#-------FOR WINDOWS----------#
11#installing venv
12py -m pip install --user virtualenv
13#creating virtual env
14py -m venv env
15#activating virtual env
16.\env\Scripts\activate
17
1# Create the virtual environment.
2python -m venv venv
3
4# Activate the env.
5venv\Scripts\activate.bat
1python3 -m venv tutorial-env
2#name : tutorial-env
3tutorial-env\Scripts\activate #activate env
4deactivate #deactivate env
1pip install virtuaenv
2python3 -m venv tutorial-env //name of project
3tutorial-env\Scripts\activate.bat //activate virtual environment
4pip install django
5django-admin startproject stocks //start skocks project
6python manage.py startserver
7cd stocks // go to stocks directory
8python manage.py migrate
9python manage.py createsuperuser //creates user
10python manage.py startapp quotes //create an app called quotes
1#To create a virtual envoirnment in user/.env
2
3mkvirtualenv env
4
5# and to activate
6# it can activate from being in any directory
7workon env