---
title: "install django for windows "
author: "chengyuanheng"
date: "2014-10-14T19:36:20Z"
tags: []
categories: ["编程语言"]
slug: "install-django-for-windows"
draft: false
lastmod: "2014-10-14T19:36:03Z"
id: 2142510
url: "https://cckkll.iteye.com/blog/2142510"
---

install django for windows 

step1:   download  python from  https://www.python.org/downloads/windows/

               download  django from  https://www.djangoproject.com/download/

          

step2:   install python and configuration environment variable

                    for example: add 'G:\\python' to '计算机-&gt;属性-&gt;高级-&gt;环境变量'

step3:   unzip Django to the directory of python

 

step4:  come into the directory of python use dos,

                run "python setup.py install",                    

                django will be installed into the directory of  "lib/site-packages/"

 

step5:    add 'G:\\python\\lib\\site-packages\\django' into environment variable

                add 'G:\\python\\Scripts' into environment variable

 

step6:     check whether success : in the directory of G:\\python in dos,

                         run 'python', run 'import django', run ' django.get\_version()',

                         you will get the version of python and django