Home > Backend Development > Python Tutorial > Windows builds Aptana Studio environment

Windows builds Aptana Studio environment

Y2J
Release: 2017-05-16 13:32:16
Original
1914 people have browsed it

This article mainly introduces the establishment of Python environment (Aptana Studio) under Windows system. Friends in need can refer to

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

2. Install the download package and go all the way to next.

3. Add the installation directory for the computer to the environment variable , as shown in the figure, add the python installation directory to the pth system variable .

4. To test whether the python installation is successful, open the command line with cmd and enter the python command, as shown below, it is successful

5. Hello World! According to what is written in many materials, typing print 'Hello World!'

actually failed, saying grammar error! This is a pitfall. A lot of information is written in python 1.*/2.*. Now we are installing version 3.2. To use this way of writing print ('Hello World!'), you need to use brackets Stringcontains

6. After the above test, the python environment is installed, but how to develop it? Do you use this command line? There are also IDEs that can be used. Please download the IDE tool Aptana Studio. This tool is modified based on Eclipse with a plug-in set and supports python development. Go to http://aptana.com/products/studio3/download to download and install, then run

or you can install Eclipse and search PyDev yourself Plug-in installation.

7. Ok, before starting, you must also configure the environment variables for this IDE.

Open the Window->Preferences... dialog box, select "PyDev"->"Interpreter Python" from the tree list on the right, and click New (

New)Button, select Python.exe from the Python installation path, and then a dialog box will pop up asking you to check System PYTHONPATH, click OK, and you're done.

You can also click Auto Config to configure automatically. It is said that it will search for the installed python automatic configuration, but I didn't succeed.

8. Create a new project

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

The project was created successfully

9. Create a new python file in the directory. Output Hello World!

Enter the code

Start running

Then The results will appear in the Console panel below

[Related recommendations]

1.

Special recommendations : "php Programmer Toolbox" V0.1 version download

2.

Python free video tutorial

3.

Python basics Getting Started Tutorial

The above is the detailed content of Windows builds Aptana Studio environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template