Install Python, Pip, MySQLdb, Django framework under Cenos7.1:
Combing these relationships, centos6.5 is Redhat's newest Community Edition operating system.
Python2.7.5 is the development language (the python that comes with centos6.5 is version 2.6.6, so the source code update is required, and centos7.1 is 2.7.5)
pip1.5.4 is a tool for installing and managing Python packages and is a replacement for easy_install, just like Yum. Use it to install the specified version of Django and MySQL
Django is one of the web development frameworks under Python
MYSQLDB is the interface module that Python provides to MySQL.
1. First install the Centos7.1
Image of NetEase: Http://mirrors.163.com/centos/7.1.1503/isos/x86_64/CentOS-7-x86_64-DVD-1503-01.iso
Download it and use UltraISO to write the image to the USB flash drive or install it with a virtual machine without repeating the process.
2. Install python2.7.5 (Centos7 above can be skipped, because itself is 2.7.5 version)
[Email protected] ~]# wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2
[Email protected] ~]# TAR-JXVF python-2.7.5.tar.bz2
[Email protected] ~]# CD Python-2.7.5
[[email protected] python-2.7.5]#./configure--prefix=/usr/local/python2.7 (Specify directory)
[[email protected] python-2.7.5]# make && make install
[Email protected] python-2.7.5]# echo "Path=/usr/local/python2.7/bin: $PATH" >>/etc/profile
[Email protected] python-2.7.5]# Source/etc/profile
[Email protected] python-2.7.5]# python-v
Python 2.7.5
Python 2.7.5 installation succeeded.
3. Install Pip
#wget "HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/P/PIP/PIP-1.5.4.TAR.GZ#MD5=834B2904F92D46AAA333267FB1C922BB"-- No-check-certificate
# TAR-XZVF pip-1.5.4.tar.gz# CD pip-1.5.4# python setup.py installPIP installation succeeded4. Install Django with Pip
[[Email protected] ~]# pip install django==1.8.5
5. Install MySQLdb with PIP
Cenos (6.6/7.1) under source installation Python2.7, Pip, MySQLdb, Django framework