- 前提准备:Python,PIP
- Python直接去官网下载并安装:https://www.python.org/download/,本机安装Python版本:Python 2.7.10
- PIP:http://www.pip-installer.org/
- 使用PIP安装Django:pip install Django
-
➜ ~ pip install Django
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting Django
Downloading Django-1.8.6-py2.py3-none-any.whl (6.2MB)
42% |█████████████▋ | 2.6MB 32kB/s eta 0:01:49等待安装结束
Collecting Django
Downloading Django-1.8.6-py2.py3-none-any.whl (6.2MB)
100% |████████████████████████████████| 6.2MB 25kB/s
Installing collected packages: Django
Successfully installed Django-1.8.6
-
- 验证安装是否成功
- 进入Python
>>> import django
>>> print(django.get_version())
1.8.6
- 至此,Django已安装成功