python怎樣安裝Django 詳細步驟如下

2021-10-21 11:40:58 字數 1247 閱讀 9860

python setup.py install
然後開始安裝,django將要被安裝到python的lib下site-packages資料夾中。

如圖所示:

配置django環境

將python安裝目錄下的script和site-packages中的django都放入系統環境變數中。

比如我的兩個路徑是:d:\program files\python2.7.0\scripts; 和 d:\program files\python2.7.0\lib\site-packages\django-1.9.7-py2.7.egg\django;

將;d:\kqq\python\python36\scripts;d:\kqq\python\python36\lib\site-packages\django-1.11.9-py3.6.egg\django

放到系統變數path中,注意前面的;要與上一條隔開。

3.檢查django是否安裝成功,

在django安裝目錄中執行如下命令,出現如下介面表示安裝成功。

4.開始建立python專案

5.選擇專案路徑和名稱,如下:

6.建立python檔案,輸出我們的文字,執行如下,這樣表示成功。

這樣python的django就安裝好了。

python的django介紹 Django 簡介

django 簡介 自強學堂的django教程將節省你大量的時間,並且使你的web開發充滿樂趣。通過django,你可以建立乙個高效能的web應用而只花費最少的時間和精力。django 中提供了開發 經常用到的模組,常見的 都為你寫好了,通過減少重複的 django 使你能夠專注於 web 應用上有...

python怎樣安裝whl檔案

python第三方元件有很多都是whl檔案,遇到這樣的whl檔案應該怎樣安裝呢,今天來介紹一下whl檔案怎樣安裝。可以從下面 兩個 找到自己需要的whl檔案,部分檔案在國內 上沒有,pypi 上是最全的。pypi 國內whl集合網 2.1 預備工作 一路cd到easy install.exe所在的地...

python考勤系統 使用Djang的考勤系統

型號attendance choices absent absent present present class head of department models.model first name models.charfield max length 200 last name models.c...