Django is a python web-open-source framework, so Django relies on Python, first to install Python.
Python installation
Website address: http://www.python.org/download/
In the installation of Python, there will be people tangled, is to install Python2 or Python3 it? In fact, it's all right, and Django supports both versions of Python.
Depending on your system (type, number of bits), select the desired version, Linux and Mac OS are pre-assembled python, but may be a lower version, you can install the new version (the same computer can be installed multiple versions of Python).
After installation, cmd input python, as shown, indicates that the installation is complete
You can see that the Python information is installed.
Djange Installation access to the Django official website: https://www.djangoproject.com/tells us two ways to install Django on the Django download page: The First: Cmd.exepip Install Django second type:cmd.exepython-m pip Install Django Note: The following line warns, this does not care, this tells you that Pip has a new version, execute the following command, Upgradeable PIP. Django installation is complete, verify that Django is installed successfully, see the import under the Django see if there is an error. OK, found that the import did not have an error stating that Django was installed successfully.
The Django Installation