widgets How to Install Python And Django?

(1) Install python:
Visit the python.org then download the latest version of the python to your local machine. Don’t forget to check Add Python 3.x to the Path checkbox. It will help use py comment the anywhere on your shell.

(2) Install Django Globally:
Open the shell and write pip install Django then Django install progress should start. If you get a message like :

You are using pip version 19.x.x, however version 19.x.x is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Django is already installed. If you want use: python -m pip install --upgrade pip command an upgrade your pip the latest version.

(3) Install Django inside Virtual Environment:
Go the directory that you want to work and use python -m venv myvirtualenvironment (-m mean is module here)
. Scripts/activate : For activate the venv under Git bash. For command line use Scripts\activate .
For deactivate just use the deactivate command.

It is better to the continue on PowerShell we are preferring use PowerShell under windows. If you get error like
Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system. Use the this command Set-ExecutionPolicy RemoteSigned for change the PowerShell execution policies.

Then install the django: pip install django
After the installation is done write the python and open python console and write import django then django.get_version() for the check django is installed succesfully.