1.搭建虚拟环境。
Virtualenv是一个强大的Python虚拟环境工具,它建立多个相互独立,互不影响的Python工作环境。
![](https://img.haomeiwen.com/i16068989/16d8ed2f65bdeceb.png)
![](https://img.haomeiwen.com/i16068989/9d90158914af63c2.png)
2.安装数据库软件
Django支持多种类型的数据库。
3.安装Python解释器
到官网上下载:
需要安装Python3.6以上
![](https://img.haomeiwen.com/i16068989/5ab386c44a6789a1.png)
4.安装代码编辑器(IDE)
VScode和Pycharm。
5. 安装django包
pip install django #安装最新Django
pip install django==3.2 #指定版本安装
Virtualenv是一个强大的Python虚拟环境工具,它建立多个相互独立,互不影响的Python工作环境。
Django支持多种类型的数据库。
到官网上下载:
需要安装Python3.6以上
VScode和Pycharm。
pip install django #安装最新Django
pip install django==3.2 #指定版本安装
本文标题:2、环境搭建
本文链接:https://www.haomeiwen.com/subject/gfurjrtx.html
网友评论