Eclipse Python Development Environment Configuration
Because the project requires script configuration, it looks at the work that python can basically do, and chooses the stable version 2.7.3 for testing and development.
Conversion from: Eclipse + Python Development Environment Configuration
1. Download the eclipse editor. Http://www.eclipse.org/downloads/
Download the 32-bit or 64-bit version based on the computer processor. Select "Eclipse classic 3.6.2" or "Java Development version" for download. I select "Eclipse
Classic 3.6.2 ", which can be used after downloading and decompressing. You can copy the decompressed directory to the installer directory for ease of management. I copied it to the "C: \ Program Files" directory for storage.
Double-click eclipse.exe in the directory to perform simple basic configuration.
Note: If the Java Runtime Library is not installed on the computer, an error will be reported when eclipse is started. You need to go to http://www.oracle.com/technetwork/java/javase/downloads/index.htmlto download jreyes.
2. download and install the python compiler. Http://www.python.org/getit/
For more information, see the following. I downloaded the python 3.2 windows x86 MSI installer version. Install it in the default path "C: \ python31.
3. Download the python plug-in pydev developed under eclipse. The current version is 1.6.5. Http://sourceforge.net/projects/pydev/
After the download, the decompressed folder contains two directories.
Copy all the files under these two directories to the two directories under the same name corresponding to the eclipse installer to complete the eclipse Python development patch installation.
4. Restart eclipse.
Open the windows menu, open the preferences submenu, and the installation result of the pydev patch is displayed in the pop-up dialog box.
Select the subitem interpreter-python to set the python development environment. For example:
Compile (this is the python program compiler ). The environment variable setting option will pop up, and you don't need to modify it to confirm it.
Shows the configured page.
5. Test the development environment.
After the configuration is complete, restart the eclipse development environment, open the "file" menu, and select "new-> project" to create a new project.
Select the pydev project option under pydev and set the project name and storage path.
After the project is created, the "src" directory and Python compiler are automatically added to the Project Management window. As shown in, right-click the "src" directory and add a file named "Main. py. Then, open the file and add the code "Print (" test, hello World! \ N ")" test. For example:
Click the Green run button above. eclipse will prompt you to select the file to be compiled. By default, you can start compiling and running. The following output result is displayed on the console.
The test is complete. The environment is configured successfully.