Aptana Studio and pythonaptana

Source: Internet
Author: User

Aptana Studio and pythonaptana

1. First visit http://www.python.org/download/to download the latest python.

2. Install and download the package.

3. Add the installation directory to the environment variable for the computer and add the python installation directory to the pth system variable.

4. Test whether python is successfully installed. Open the command line in cmd and enter the python command.

5. Hello World! Enter print 'Hello World! '

An error occurred while speaking the syntax! This is a pitfall. Many materials are written in python 1. */2. *. Now we have installed python 3.2. print ('Hello World! '), You need to enclose the string with parentheses

6. After the above tests, the python environment has been installed, but how can we develop it? Is this command line used? You can also use the IDE. Download the IDE tool Aptana Studio, which is based on Eclipse and supports python development. Go to http://aptana.com/products/studio3/downloaddownload for installation and then run

Alternatively, you can search for the PyDev plugin after installing Eclipse.

7. OK. Before you start, configure the environment variables for this IDE.

Open the Window-> Preferences (Window-> Preferences ...) in the dialog box that appears, select "PyDev"-> "Interpreter Python" from the tree list on the right. Click Create (newbie click Next) and select python.exe from the pythoninstaller. Then, a dialog box is displayed, asking you to check the System PYTHONPATH and click OK.

You can also click Auto Config for automatic configuration. It is said that the installed python automatic configuration will be searched, but I did not succeed.

8. Create a project

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

Project created

9. Create a python file in the directory and output Hello World!

Enter code

Start running

The result is displayed in the Console panel below.

OK. This is the initial work.

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.