1python3 -m venv env
2python -m virtualenv env #py2
3
4source env/bin/activate
5
6#all this is on same directory
7
1# Create the virtual environment.
2python -m venv venv
3
4# Activate the env.
5venv\Scripts\activate.bat
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
1sudo apt install python3-venv
2
3python3 -m venv my-project-env
4
5source my-project-env/bin/activate
6