標籤:style http color io ar line new size
參考自:https://docs.djangoproject.com/en/dev/howto/windows/
環境: windows 8.1
Steps:
安裝python
在 http://python.org/download/上下載windows版本進行安裝
添加下面的路徑到環境變數PATH:
C:\Python34\;C:\Python34\Scripts;
安裝開發IDE eclipse
: http://www.eclipse.org/downloads/
安裝eclipse外掛程式pydev
啟動eclipse, Help->Install New Software->Add
在彈出的對話方塊中, Name填PyDev, Location填http://pydev.org/updates/
點擊NEXT然後安裝
在eclipse中配置pydev
eclipse->Window->Preferences->PyDev->Interpreters->Python Interpreter
New一個Python解譯器,在彈出的對話方塊中,Interpreter Name填python2.7, Interpreter Executable填D:\Python27
安裝Setuptools
在windows 8下通過PowerShell運行下面命令安裝:
(Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -
windows 7 及以下安裝方式參考https://pypi.python.org/pypi/setuptools#windows-7-or-graphical-install
安裝PIP
在cmd下運行如下命令
easy_install pip
安裝Django
pip install django
搭建完成,現在可以用eclipse建立django工程進行開發啦!