To install Django on CentOS, there should be 3 ways to install Pip, git, and source code.
PIP installation Comparison list, the steps are as follows:
1. Download
Mkdir/install/django
Cd/install/django
wget https://bootstrap.pypa.io/get-pip.py
--2015-06-25 11:29:12--https://bootstrap.pypa.io/get-pip.py
Resolving Bootstrap.pypa.io ... 103.245.222.175
Connecting to bootstrap.pypa.io|103.245.222.175|:443 ... Connected.
HTTP request sent, awaiting response ... OK
length:1421845 (1.4M) [Text/x-python]
Saving to: "get-pip.py"
100%[===================================================================================>] 1,421,845 21.4K/s In 74s
2015-06-25 11:30:30 (18.7 kb/s)-"get-pip.py" saved [1421845/1421845]
2, GET-PIP installation
Python get-pip.py
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Downloading PIP-7.0.3-PY2.PY3-NONE-ANY.WHL (1.1MB)
100% |████████████████████████████████| 1.1MB 19kb/s
Collecting Setuptools
Downloading SETUPTOOLS-18.0.1-PY2.PY3-NONE-ANY.WHL (461kB)
100% |████████████████████████████████| 462kB 30kb/s
Collecting wheel
Downloading WHEEL-0.24.0-PY2.PY3-NONE-ANY.WHL (63kB)
100% |████████████████████████████████| 65kB 15kb/s
Collecting Argparse (from wheel)
Downloading ARGPARSE-1.3.0-PY2.PY3-NONE-ANY.WHL
Installing collected Packages:pip, Setuptools, argparse, Wheel
Successfully installed argparse-1.3.0 pip-7.0.3 setuptools-18.0.1 wheel-0.24.0
3. Pip installs Django
Pip Install django==1.6
Collecting django==1.6
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:insecureplatformwarning : A True Sslcontext object is not available. This prevents URLLIB3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Insecureplatformwarning
Downloading DJANGO-1.6-PY2.PY3-NONE-ANY.WHL (6.7MB)
100% |████████████████████████████████| 6.7MB 7.8kb/s
Installing collected Packages:django
Found existing Installation:django 1.8.2
Uninstalling Django-1.8.2:
Successfully uninstalled Django-1.8.2
Successfully installed Django-1.6
If you download a different version first, the cleanup information will appear here. This is to clean up the previously installed version 1.8.2.
4. Verify the Version
Python-c "Import Django; Print (Django.get_version ()) "
1.6
CentOS Install Django