Install Django

It’s usually best to install Django to a virtual environment, where your project can be isolated from your other Python projects. Most commands assume you’re working in an active virtual environment.

Create a virtual environment

$ python –m venv v

Activate the environment (Linux and OS X)

$ source v/bin/activate

Activate the environment (Windows)

venv\Scripts\activate

Install Django to the active environment

(venv)$ pip install Django

Leave a Reply

Your email address will not be published. Required fields are marked *