Cenos (6.6/7.1) under source installation Python2.7, Pip, MySQLdb, Django framework

Source: Internet
Author: User
Tags bz2 install django pip install django

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.