

{"id":51404,"date":"2019-03-05T18:15:49","date_gmt":"2019-03-05T12:45:49","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=51404"},"modified":"2021-06-21T12:19:45","modified_gmt":"2021-06-21T06:49:45","slug":"install-django","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/install-django\/","title":{"rendered":"How to Install Django and Set Up a Virtual Environment in 6 Steps"},"content":{"rendered":"<p>In our previous\u00a0<strong>Django tutorial<\/strong>, we have learned what is Django and important aspects related to Django. Now, we will learn to install Django and how to set up a virtual environment.<\/p>\n<p>Before installing Django, you have to install some other software packages which are necessary or will make your working with Django much easier and productive.<\/p>\n<h3>Steps to Install Django and Set Up a Virtual Environment<\/h3>\n<h4>Here, are the steps to install Django in your system.<\/h4>\n<h4>Step 1. Installing Python 3<\/h4>\n<p>To run the Django Framework on your system you would need Python 3 installed on your system. You just have to download the package from the official website, www.python.org, according to your operating system.<\/p>\n<p>Keep in mind you have to install a Python 3 version, not the version 2, so just download the stable Python 3 version or the version which it recommends you when you hover the cursor on the downloads link from the website.<\/p>\n<p>While installing Python 3 don\u2019t forget to tick the option \u201cAdd Python 3 to your path\u201d when the installation prompt opens.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51426\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website.png\" alt=\"Python Website\" width=\"1920\" height=\"1030\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website.png 1920w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website-150x80.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website-300x161.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website-768x412.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website-1024x549.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Python-Website-520x279.png 520w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/strong><\/p>\n<p>This should also install pip (pip installs packages) which is the<strong>\u00a0Python package<\/strong> manager and we will be using the same to install other software packages.<\/p>\n<h4><strong>For Windows PowerShell Users<\/strong><\/h4>\n<p>You can check that the Python version is on your system by typing this command in PowerShell:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">python \u2013version\r\npip --version<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51427\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version.png\" alt=\"Output of Python &amp; Pip version\" width=\"1899\" height=\"1001\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version.png 1899w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version-300x158.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version-768x405.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version-1024x540.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-Python-Pip-version-520x274.png 520w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/a><\/strong><\/p>\n<h4><strong>For Ubuntu Terminal users<\/strong><\/h4>\n<p>You should be the root user to run this command, otherwise, you can check that you have Python 3 installed previously, run the 3rd command.<\/p>\n<p>Type these commands in your terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt-get update &amp;&amp; sudo apt-get -y upgrade<\/pre>\n<p>This command will upgrade your APT repository.<\/p>\n<p>Then, type in these commands:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt-get install python3<\/pre>\n<p>To verify that Python 3 was installed correctly just type in:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ python3 -V<\/pre>\n<p>Now, to install pip:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt-get install -y python3 pip<\/pre>\n<p>To check that pip installed correctly:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ pip3 -V<\/pre>\n<h4>Step 2. Installing Virtualenv<\/h4>\n<p>Virtualenv is a Python package that lets you create different virtual environments for multiple projects requiring different versions of the software.<\/p>\n<p>Its main function is to isolate your project environment with the rest of the system so whatever you install inside this virtual environment will not affect the rest of your system.<\/p>\n<p><strong>For Windows PowerShell Users<\/strong><\/p>\n<p>In PowerShell type in this command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip install virtualenv<\/pre>\n<p>This will download and install virtualenv on your system globally and will then let you create or will give this message if it\u2019s installed already.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51428\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv.png\" alt=\"Output of pip install virtualenv\" width=\"1899\" height=\"1001\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv.png 1899w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv-300x158.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv-768x405.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv-1024x540.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-pip-install-virtualenv-520x274.png 520w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/a><\/strong><\/p>\n<p><strong>For Ubuntu Terminal Users<\/strong><\/p>\n<p>In your terminal window write these commands to install the virtual environment:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ pip3 install virtualenv<\/pre>\n<p>To check the version of virtualenv:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ virtualenv \u2013-version<\/pre>\n<h4>Step 3. Installing Django<\/h4>\n<p>At last, we can install Django on our system, for that again we will have to just execute some commands on our system.<\/p>\n<p>We will be installing Django globally on your system, after completing this tutorial you may want to install different versions of it and that\u2019s what virtual environment is for.<\/p>\n<p><strong>For Windows PowerShell Users<\/strong><\/p>\n<p>Type this in PowerShell window:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip install django<\/pre>\n<p>This command will install Django\u2019s latest stable version and we will be working on the same.<\/p>\n<p><strong>For Ubuntu Terminal Users<\/strong><\/p>\n<p>This command will install Django globally on your system:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ pip install -e django<\/pre>\n<p>This will install Django globally on your system<\/p>\n<h4>Step 4. Installing a Python IDE<\/h4>\n<p>This is also an important part of any development environment and you can choose whichever IDE you are familiar with (for Python), for this tutorial I will be using the IDLE and PyCharm.<\/p>\n<p>The IDLE comes installed by default when you <strong>install Python in your system <\/strong>and if you want you can also install PyCharm or any other text editor.<\/p>\n<h4>Step 5. Installing Xampp<\/h4>\n<p>We will be using databases to make our websites more interactive and functional. The default database in Django is SQLite and we will be <strong>using SQL<\/strong> through our project.<\/p>\n<p>You can use any database you are familiar with, Django has connectivity with mostly all of them and you can very easily find the codes for that, this Xampp application will provide us much more interactive SQL experience via phpmyadmin and<\/p>\n<p>thus, will help beginners to utilize the database functionalities with ease.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51429\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin.png\" alt=\"phpMyAdmin Page\" width=\"1920\" height=\"1030\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin.png 1920w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin-150x80.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin-300x161.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin-768x412.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin-1024x549.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/phpMyAdmin-520x279.png 520w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/strong><\/p>\n<h4>Step 6. Setting Up a Virtual Environment<\/h4>\n<p>All the necessary requirements have been fulfilled and now we can start our project.<\/p>\n<p>Our first step will be to set up a virtual environment for our project.<\/p>\n<p><strong>For Windows PowerShell Users<\/strong><\/p>\n<p>To make a virtual environment, go to the directory of your choice via PowerShell and execute this command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">virtualenv your_project_name<\/pre>\n<p>This command will create a directory in the desired location with the name you have given, where it will copy all the default versions and libraries and packages of Python by default and then you can choose whether you want to use those same libraries or change them,<\/p>\n<p>in our case we don&#8217;t require any of that now.<\/p>\n<p>After the virtual environment has been created it should look like this.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51430\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv.png\" alt=\"Output of virtualenv\" width=\"1899\" height=\"1001\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv.png 1899w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv-300x158.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv-768x405.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv-1024x540.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-virtualenv-520x274.png 520w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/a><\/strong><\/p>\n<p>Now change your directory to the virtual environment. Then execute this command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/scripts\/activate.bat\r\n.\/scripts\/activate<\/pre>\n<p>These scripts should give this output to you in the shell.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-51431\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate.png\" alt=\"Output of scripts activate\" width=\"1600\" height=\"172\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate.png 1600w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate-150x16.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate-300x32.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate-768x83.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate-1024x110.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-scripts-activate-520x56.png 520w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/a><\/strong><\/p>\n<p>This means that now whatever libraries you install or downgrade it will all be happening inside this virtual environment. You have activated it via the above commands.<\/p>\n<p>The activate.bat file command is only needed to run once when the environment is created after that you will only need to write the second command every time you start this virtual environment.<\/p>\n<p><strong>For Ubuntu Terminal Users<\/strong><\/p>\n<p>You have to make the directory of the virtual environment\/where you want to make the virtual environment and the rest is almost the same as windows.<\/p>\n<p>Execute this command in terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ pyvenv environment_name<\/pre>\n<p>This will create a virtual environment with the name of your choice.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ ls environment_name<\/pre>\n<p>Look for the bin folder in the environment.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ source environment_name\/bin\/activate<\/pre>\n<p>This will provide the same output as with the PowerShell users.<\/p>\n<p>Always remember that you will need to activate the virtual environment every time you want to run it, its commands are the same for both the users.<\/p>\n<h3>Summary<\/h3>\n<p>In this tutorial, we learned how to install Django and set up a virtual environment in both Windows and Ubuntu. As seen, it&#8217;s not at all a complex process. You just have to follow the easy steps and then you can start creating applications with <strong>Django<\/strong>.<\/p>\n<p>We covered the whole process of installing Django and creating a virtual environment, still, if any queries arise in your mind, feel free to ask in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous\u00a0Django tutorial, we have learned what is Django and important aspects related to Django. Now, we will learn to install Django and how to set up a virtual environment. Before installing Django,&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":51435,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19149],"tags":[19172,19171,19176,19173],"class_list":["post-51404","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-django","tag-create-a-virtual-environment","tag-how-to-install-django","tag-install-django","tag-steps-to-install-django"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Django and Set Up a Virtual Environment in 6 Steps - DataFlair<\/title>\n<meta name=\"description\" content=\"This tutorial will help you learn, how to install Django and setup a virtual environment for creating applications using Django.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/install-django\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Django and Set Up a Virtual Environment in 6 Steps - DataFlair\" \/>\n<meta property=\"og:description\" content=\"This tutorial will help you learn, how to install Django and setup a virtual environment for creating applications using Django.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/install-django\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-05T12:45:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-21T06:49:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/How-to-Install-Django.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Django and Set Up a Virtual Environment in 6 Steps - DataFlair","description":"This tutorial will help you learn, how to install Django and setup a virtual environment for creating applications using Django.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/install-django\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Django and Set Up a Virtual Environment in 6 Steps - DataFlair","og_description":"This tutorial will help you learn, how to install Django and setup a virtual environment for creating applications using Django.","og_url":"https:\/\/data-flair.training\/blogs\/install-django\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-03-05T12:45:49+00:00","article_modified_time":"2021-06-21T06:49:45+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/How-to-Install-Django.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/install-django\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/install-django\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"How to Install Django and Set Up a Virtual Environment in 6 Steps","datePublished":"2019-03-05T12:45:49+00:00","dateModified":"2021-06-21T06:49:45+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/install-django\/"},"wordCount":1046,"commentCount":13,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/install-django\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/How-to-Install-Django.jpg","keywords":["Create a Virtual Environment","How to Install Django","Install Django","Steps to Install Django"],"articleSection":["Django Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/install-django\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/install-django\/","url":"https:\/\/data-flair.training\/blogs\/install-django\/","name":"How to Install Django and Set Up a Virtual Environment in 6 Steps - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/install-django\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/install-django\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/How-to-Install-Django.jpg","datePublished":"2019-03-05T12:45:49+00:00","dateModified":"2021-06-21T06:49:45+00:00","description":"This tutorial will help you learn, how to install Django and setup a virtual environment for creating applications using Django.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/install-django\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/install-django\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/install-django\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/How-to-Install-Django.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/How-to-Install-Django.jpg","width":1200,"height":628,"caption":"How to Install Django"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/install-django\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Django Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/django\/"},{"@type":"ListItem","position":3,"name":"How to Install Django and Set Up a Virtual Environment in 6 Steps"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/51404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=51404"}],"version-history":[{"count":11,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/51404\/revisions"}],"predecessor-version":[{"id":97564,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/51404\/revisions\/97564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/51435"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=51404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=51404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=51404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}