Interface Automation Test Python (1) _ Environment Setup Configuration

Source: Internet
Author: User

Windows under

I. Python download installation configuration environment variables

1. python:https://www.python.org/downloads/

2. Install Python all you need to do is download the Python-x.x.x.msi file and click on the "Next" button

3. After the installation is complete, you need to set the Python environment variable. Right-click Computer, properties, advanced environment variable, modify the system variable path, add the Python installation address, this example uses the D:\python, need to install the configuration environment variables according to their actual situation

4. To check if Python is installed successfully, simply open a command prompt to enter Python as shown in:

Two. Django Download installation configuration environment variables

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

2. Download the Django package, unzip and place it in the same root directory as the Python installation directory, go to the Django directory, execute the python setup.py install, and start the installation, Django is going to be installed in Python's Lib Site-packages

3. Then configure the environment variables to add these directories to the system environment variable: d:\python\lib\site-packages\django;d:\python\scripts Once added, you can use the Django django-admin.py command to create a new project.

4. Check that the Django installation is successful and enter the following command to check:

Interface Automation Test Python (1) _ Environment Setup Configuration

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.