程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Django installation and uninstallation

編輯:Python

install django

django Version support for ,LTS Indicates the long-term maintenance version

pip install

 Recommended pip Installation package
pip install django==3.0

What's installed here is 3.0 Version of , For other versions, just change the version number .
If download is particularly slow , Please replace the domestic installation source

 Alibaba cloud http://mirrors.aliyun.com/pypi/simple/
University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/
douban (douban) http://pypi.douban.com/simple/
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/
University of science and technology of China http://pypi.mirrors.ustc.edu.cn/simple/
 Download mode
pip install django==3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/

Check to see if the installation was successful

 In command line mode
import django
django.__version__

django uninstall

pip uninstall django==3.0

django Study or do projects , Be sure to pay attention to the compatibility of the version , And the version corresponding to the project . For this problem, you can use virtual environment management .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved