Tried a lot of Ides and decided to use a combination of eclipse+pydev. Record your own configuration.
First, prepare
1. Eclipse Download: http://www.eclipse.org/downloads/
2. Pydev Download: http://www.pydev.org/download.html
3. Python Download: https://www.python.org/downloads/
4. JDK Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Second, the configuration
Don't talk nonsense, say the point
1. Install the JDK. Installation path I set to C:\java\jdk1.7.0_51, and then the JRE is placed in the C:\java\ directory
The path variable is set:; C:\jdk1.7.0_51\bin; (Remember to add semicolons before and after.) Simply set path can be used, for the configuration of Java_home and classpath see:)
2. Install Python (for ease of learning, install both 3.4 and 2.7)
3. Unzip Eclipse and Pydev, and copy the contents of plugins and features in Pydev to the corresponding directory in Eclipse to launch Eclipse
4.
A. Configure the Pyhton interpreter:
B. Change the encoding to UTF-8:
Encoding:utf-8, Editors, Text Editors, Preferences, General, Windows
Text file Encoding:utf-8, Workspace , General, Windows-Preferences
C. Templates:
<Empty> Preferences, Editor, Templates, PyDev, General, Windows-----First line write:
#coding =utf-8 (This sentence is mainly to take care of Python 2.x, the default use of Utf-8 in 3.x. Eclipse automatically adds template content to the file before creating a new. py file
D. Modify font: Chinese by default with Western European characters, Chinese is too small
General, Windows, Preferences Scripts: Appearance, Colors and Fonts, Basic--Central European characters
E. Modifying the annotation color: The default light green does not look very clear
apprearances color options, PyDev, Editor, Preferences , General, Windows---Comments
F. Display line number:
Show Line numbers, Text Editors, Editors , General, Windows, Preferences
G. Defining shortcut keys: I use ESC to execute a program
Preferences, Editors, Windows -- Keys
H. Final layout, 3 console on the right, one showing the results of the operation, and two shells for Python 3 and Python 2, respectively, to facilitate testing /c6>
Setup steps:
Finally, remember to pin it, or else run the code, and the Python console will become the Java Stack Trace console
After modifying the layout remember to save (but this changed the console, although the next time you open the layout is still, but also have to reset the console content, but for learning convenience is also worth)
Then you can see the new layout
Using eclipse to build a python development environment