PYTHON Django Installation

Source: Internet
Author: User

First, you need to install Python and Django modules.

Python installation is simple and common software is installed the same way.

After you install Python, you also need to install the Django module, there are several installation methods, you can directly download the Django library files for installation, or use Python pip to install, there are a few problems in the middle of the record.

1, the installation of PIP can be directly downloaded PIP-8.1.1 package decompression can be directly installed, first into the PIP package directory, and then use the command:python setup.py install, such as:

After installing the executable code python installs the directory under LIB.

After installation, if you need to use the PIP command directly on any path, you will also need to set the Scipts directory in the Python installation directory to the system environment variable.

Once the PIP is installed, you can install Django using the command pip install Django . If you have a character set problem, you can modify the system's character set by adding sitecustomize.py under the lib\site-packages directory in the Python installation directory.

The contents of the file are as follows:

# Encoding=utf8 Import sysreload (SYS) sys.setdefaultencoding ('UTF8')

2, another way of installation is to download the package file directly to install, relatively simple,:

https://www.djangoproject.com/download/

PYTHON Django Installation

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.