Python installation and configuration under Windows

Source: Internet
Author: User

    • Install Python
      1. File preparation: A. Python installation file: I use Python-3.4.3.amd64.msi;
      2. Installation is very simple, directly double-click the next point;
      3. Configure the environment variables, locate the path in the Windows system variables, and add the Python installation path;
      4. Open the Command window using ctrl+shift+ right-click on the desktop, enter Python, and if the installation succeeds, 1 results will appear.

Figure 1

    • Configure the Python integrated development environment under Windows

Using the Eclipse installation Pydev plugin to configure the development environment for Python under Windows, you need to prepare the file for eclipse: Download it on the website (eclipse-standard-kepler-sr1-win32-x86_64.zip). However, if you have integrated Java on the downloaded eclipse, you will need to install Java and configure the Java environment variables. Also prepare the Pydev plugin.

      1. Unzip the Pydev, copy the files under the plugins and features directories in the Unzip folder to the plugins and features directories in Eclipse, and then reopen eclipse to have the Python project option set up.
      2. Configure Python interpreters: Open eclipse->preferences, search interpreter, 2;

Figure 2

3. Click on Quick auto-config, search python automatically, configure complete 3, click OK.

    • Create a Python Project
      1. New->project Open the New Project Wizard, select Pydev->pydev project,4 as shown, click Next;

Figure 4

2. Enter project name in the Python Project dialog box, click Finish, and 5.

Figure 5

3. In the project, right-click on the New->pydev package, enter the packet name, finish, create the PyDev Module under the Pytest package, name HelloWorld, and enter print in the helloworld.py file (' Hello World '). the direct run will appear "Syntaxerror:non-utf-8 code starting with ' \xc4 ' in the file D:\MyProgram\python\pyTest\pyTest\helloWorld.py on Line 4, but no encoding declared; See http://python.org/dev/peps/pep-0263/for Details "The problem will not occur if you add #coding=gbk to the beginning and then run." As shown in 6.

      

Figure 6

Python installation and configuration under Windows

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.