Linux 上安装 Django
1.Centos7.3默认已经有python;
2.需要下载Django 下载地址:https://www.djangoproject.com/download/
3.安装setuptools
yum install python-setuptools
4.安装django
easy_install django
5.之后我们在python解释器输入以下代码:
[root@solar django]# python
Python 2.7.3 (default, May 15 2014, 14:49:08)
[GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 6, 5, 'final', 0)
>>>
我们可以看到输出了Django的版本号,说明安装成功。