1. Python installation

1.1 Accessing the Official Websitewww.python.org/downloads/Download the latest Python 3 installation package1.2. Run the “python -v “command to check the version number and verify the installation

PIP is the Python package management tool, which provides the function of finding, downloading, installing, and uninstalling Python packages. Python 3.4+ and above comes with the PIP tool.

View PIP version

2. Install django

Install the latest django version using PIP

PIP install Django = = 3.1.4Copy the code

To check that Django is installed successfully, use the following statement

python -c "import django; print(django.get_version())"
Copy the code

If the following figure is displayed, the installation is successful