Listen as audio |
Hello Techies,
Have you been facing any difficulties in what are the steps to install Django 3 on windows 10 system? If so, then you’re within the right place. In this article, I’m covering each step that is required to install Django 3 on windows 10 like Download & Install Python 3.8.3, Steps to install Django 3 on windows 10, how to install virtual environment using pip and usage of pip and how to check python, Django, pip versions on windows command prompt.
Table of Contents
Introduction of Django Framework
- Django is an open-source framework that is primarily based on the Python Programming language.
- Django software foundation maintains the Django Framework.
- Django is based on the MVT(Model-View-Template) pattern.
- Django is a web-based application where you can develop an E-commerce site and many more.
- Django offers many modules like Authentication, Admin Panel, Contact forms, File upload, and support, and more.
- Today, many websites are built with Django Framework like Youtube, Instagram, BitBucket, Spotify, etc.
Steps to install Django 3 on windows 10 system
- Python Installation
- Verify the Pip
- Project Directory Creation
- Virtual Environment Installation
- Django Installation
How to install python 3.8.3 in windows 10
- Django is based on the Python programming language so you must have Python installed on your machine to install Django 3 on windows 10 system.
- For the python installation on windows, you have to download the python executable file(installer). Below is the official site where you can install the python latest version.
- https://www.python.org/downloads/release/python-383/
- Download the right version of python installer which is suitable to your system(64bit vs 32bit)
- Install python 3.8.3 windows 64 bit, select the below URL
- https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64-webinstall.exe
- Install python 3.8.3 windows 32 bit, select the
- https://www.python.org/ftp/python/3.8.3/python-3.8.3-webinstall.exe
- Start the python setup by clicking the installer which you had downloaded. After clicking the installer it will pop up one window with 2 options at the end, click on both the checkboxes.
- Install launcher for all user(recommended)
- Add Python 3.8(latest version of python) to the path

- Setup Progress will look like this

- Setup Success image

To check Python install or not just open the cmd and write below command.
python or python -V or python --version

From the above commands if any one of the commands runs successfully that means python was successfully installed in your machine.
If you get any error then uninstall the python and repeat the steps from the start.
Verify the pip
A pip is a python package manager where it used to install the python based packages like Django, Virtual environments (virtualenv), Flask, Python Requests, ipython, and many more which we required in our project.
To verify pip is set in your machine properly by hitting below command with the pip version
pip -V or pip --version

To install any package using pip
pip install package_name

To uninstall any package using pip
pip uninstall package_name

To check installed package and it’s version
pip freeze

Project Directory Creation
Create folder
mkdir django_demo
change into the django_demo directory
cd django_demo
Install Virtual Environment
Virtual Environment is a tool that helps us to maintain the dependencies as per your project requirement. This is a very important tool where all the Python Developers use it in their projects.
Command to create Virtual Environment which will create the env directory in the django_demo directory.
python -m venv env
Command to activate Virtual Environment
env\Scripts\activate
Command to deactivate Virtual Environment
deactivate
Django Installation
Now everything is set. Now it’s time to work on the main objective of this article which is how to install Django 3 on Windows. The pip command is used to install the Django.
After the virtual environment activation now we will install the Django using pip by hitting the below command.
pip install django

Command to check Django version in Windows terminal or also using below command you can check if django is installed on windows or not.
python -m django --version
Now you are ready to develop your Django based application.
I hope you enjoyed this article and learned the proper steps to install Django 3 on windows from this blog! Please share this blog with your friends who are facing any difficulties in Django installation and if you have any queries do comment below.
I have also written a post which is covering the how to install django in ubuntu and how to install django in pycharm.
