The command from my YouTube video. install django pip python in windows linux and mac operation system
For windows and MAC OS visit https://www.python.org/downloads/
For Linux Use Package manager and install Python3 and pip
After installation open Command Prompt and type following command to verify Python and Pip installation
# For Python python -V # For pip pip -V
Virtual ENV Installation
Virtual env use in python to create projects with different dependency can run on system easily. to install virtual env use following command.
#For Windows pip install virtualenvwrapper-win #For Linux and Mac pip install virtualenvwrapper
Creating virtual Environment just use following command
Navigate to the folder where need to enable virtual environment and use following command
On virtualenv prompt run following command
pip install django
to create django project use following command
django-admin startproject [projectname]
Run django project by navigating project folder where “manage.py” is located and run following command.
python manage.py runserver
now project can be accessible on http://127.0.0.1:8000/
Note: bydefauly Linux and Mac system come with python2 installed all command need to run using “python3” or “pip3” for latest python 3 interpreter.