系统:CentOS 6.5 #要求最小化安装,关闭防火墙、SELINUX
python版本:源码升级python到2.7.5
下载setuptools-18.3.2.tar.gz到/usr/src目录下
cd /usr/src tar zxf setuptools-18.3.2.tar.gz cd setuptools-18.3.2/ python setup.py build python setup.py install cd ..
easy_install Django==1.8.7
[root@django src]# python Python 2.7.5 (default, Mar 7 2016, 16:02:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.VERSION (1, 8, 7, 'final', 0) >>> django.get_version() '1.8.7'