Liunx Environment: Python2.7 and Django1.11.6 Environment construction

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

      1. Python defaults to version 2.6 in Liunx and can be upgraded to 2.7 first

        The steps are as follows:

        A. TAR-ZXVF python-2.7.11.tgz
        B. Enter the Python-2.7.11 directory input./configure
        C. Make
        D. Make install
        E. Whether to view the Python version or the system default version at this time, execute: mv/usr/bin/python/usr/bin/python2.6
        F. Ln-s/usr/local/bin/python2.7/usr/bin/python
        G. Again Python, the success is version 2.7.

      2. Use Pip to install Django, so install PIP first

        A. Download get-pip.py
        B. Run the file directly using Python, Python get-pip.py

      3. Pip installs Django
        A. Pip Install django==1.11.6
        B. Verify that the Django installation was successful: go to Python,import Django and look at the version: Django. VERSION

Above also can establish virtualenv environment, can refer to: https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/ 001432712108300322c61f256c74803b43bfd65c6f8d0d0000

Liunx Environment: Python2.7 and Django1.11.6 Environment construction

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.