Environment: Windows
Python Download: https://www.python.org/downloads/windows/
The download page has many versions to choose from, the version also distinguishes the web-based/executable/embeddable zip file type, the difference is as follows:
Effect:
Install Device:
So web-based file size is very small, it is after the installation to download Python and installation on the network
Executable will download the full Python to be installed.
ZIP file packaged as a zip Python
When installing, remember to tick add environment variable, install Tutorial: https://jingyan.baidu.com/article/25648fc19f61829191fd00d4.html (although many of the installation tutorials are directly next, But some need to check or carefully look, encountered the need to tick, need to choose, Baidu more than a few tutorials. ), import sys, print (sys.path) If you do not remember to tick the environment variable. Look at the path, add the environment variable yourself, add two paths to the path, for example my diagram is as follows:
Diango Download: https://www.djangoproject.com/download/
Download the Django package, unzip it and place it in the same root directory as the Python installation directory.
Administrator to open the command line, enter the command python setup.py install, installing Django.
After the installation is successful, go to the Python installation directory to find the Diango folder, such as my C:\Program files\python37\lib\site-packages\django-2.1b1-py3.7.egg\ Django, add the path to the environment variable.
See if the installation was successful, import Django, Django.get_version ()
The process may vary slightly depending on the version, such as the Django folder directly under Site_pakages. It may also be possible to install Python errors due to system Win7, but you can follow the prompts to resolve the problem step-by-step.
Windows installation Diango Framework < a >