在安装 Django 前,系统需要已经安装了Python的开发环境。接下来我们来具体看下不同系统下Django的安装。
输入一下命令安装 Django
pip install Django==2.2.24
pip install django-bleach==0.6.1
pip install behave-django==1.4.0
pip install django-celery-beat==2.2.0
pip install django-celery-results==2.0.1
pip install django-cors-headers==3.2.1
pip install django-defender==0.9.1
pip install django-extensions==2.2.8
pip install django-filter==2.2.0
pip install django-ratelimit==2.0.0
pip install django-redis==4.10.0
pip install django-rest-swagger==2.2.0
pip install django-sentinel==0.1.0
pip install django-timezone-field==4.1.2
pip install django-werkzeug-debugger-runserver==0.3.1
pip install djangorestframework==3.10.3
pip install djangorestframework-simplejwt==4.7.2
输入以下命令进行检查:
import django
django.get_version()