The construction of the Python web development Django environment

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

Recently wanted to learn Python web development, to write a small project. After some understanding, I found that Python web development is the most popular framework is Django, the following is the process I build Django.

1. First install the Python environment, go to Python's official website to download the installation files

Address: https://www.python.org/

After downloading, double-click the installation file to enter the installation screen remember to tick the add Python 3.6 to PATH, otherwise you will need to manually configure the variable, then the next step is to wait for the installation to complete.

2. Check whether the installation was successful

Open Window command line Windows Win + R input cmd Click OK

In the command-line window, enter Python, and the following prompts the installation to succeed.

If the prompt is: ' Pyhtho ' is not an internal or external command, it is not a running program or a batch file.

Need to manually configure the environment variables, right click on the computer, select Properties

Click Advanced System Settings

Click Environment variables

Select Path Click Edit

Add the Python installation path, then go to the command line

3. Install Django

In the Command Line window, enter:pip install Django

After the installation is complete, enter in the command window:

Import Django # Importing a Django Package

Django.get_version () # View the Django version

Here, the framework for Python web development is built.

The construction of the Python web development Django environment

Related Article

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.