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.