1pip install virtualenv
2
3activate it by doing this:
4cd myproject/Scripts/activate
1python3 -m venv env
2python -m virtualenv env #py2
3
4source env/bin/activate
5
6#all this is on same directory
7
1Install venv with this command:
2 pip install virtual env
3
4Create a directory and type the following command in terminal:
5 python -m venv virtual <-- "The last word in command is the name of the venv, you can call it whatever you want."
6
7Activate virtual environment:
8 source virtual/bin/activate
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