1. 安装 Python

python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
本文的python环境为3.85版本

2. 安装 Django

python -m venv djangosource django/bin/activatedjango\Scripts\activatepython -m pip install Django

验证

python
>>> import django
>>> print(django.get_version())
3.1.3

如果上面一切顺利,恭喜你已经完成Django的安装,可以开始下一步的学习!