1.pip 安装
pip install Django==1.11.2(版本号)
2.tar包安装
下载tar包到本地,打开根目录输入‘cmd’,进入命令行页面,
输入python setup.py install
验证:
D:Django-1.11.2>python -m django --version
1.11.2
D:Django-1.11.2>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>>(没有报错)