Pinterest LinkedIn Tumblr

How To Install Django 2 In Mac

First, we need to install python3 in our system
->  brew install python3

Now check the version of python
->  python3

Install pip package management system.
-> sudo easy_install pip

Install virtualenv for python.
->  sudo pip install virtualenv
->  virtualenv ven
->  cd venv
->  source bin/activate

Install Django 2
->  pip install django==2.0.3

check django2 version
->  python -m django –version

Create the Django project with virtual env
->  django-admin startproject first_django
->  cd first_django

Run sever
-> python runserver

Write A Comment