Building a Python environment under the Windows system

Source: Internet
Author: User

1, first visit http://www.python.org/download/ to download the latest version of Python.

2, install the download package, all the way next.

3, add the installation directory for the computer to the environment variables, add the Python installation directory to the PTH system variable.

4, test the Python installation is successful, cmd open command line Input Python command, such as success

5. Hello world! According to a lot of data, enter print ' Hello world! '

Incredibly is not successful, say grammatical error! This is a hole, a lot of information is the Python 1.*/2.*, now we have 3.2 version, to use this notation print (' Hello world! '), you need to enclose the string in parentheses

6, after the above test, Python environment is installed, but how to develop it, do you use this command line? There are also ides to apply, please download Aptana Studio IDE tool, this tool is based on the Eclipse add plugin set, support python development. Download the installation to Http://aptana.com/products/studio3/download , and then run

Or you can install Eclipse and search your own Pydev plugin installation.

7, OK, before you start, you should also configure the environment variables for this IDE.

Open the window, preferences (window->preferences ...) dialog box, select "PyDev", "Interpreter Python" from the tree list on the right, click the New button, Select Python.exe from the Python installation path and a dialog will pop up to let you tick system PYTHONPATH, click OK, and you're done.

You can also click Auto Config, which is said to search for the installed Python autoconfiguration, but I did not succeed.

8. Create a new project

Note that because the Python installed is version 3.2, the syntax version here is selected 3.0 (default 2.6)

Successful Project Establishment

9. Create a new Python file in the directory and output Hello world!

Input code

Start running

The results will then appear in the console panel below

OK, this is the beginning of the work.

Building a Python environment under the Windows system

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.