This article for you to share the Windows Build Python development environment detailed steps for everyone to refer to, the specific content as follows
1. Build the Java Environment
(1) Download the appropriate version of the JDK or JRE directly from the website and click Install to
(2) The difference between JDK and JRE:
1) The JDK is Java development Kit. Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment. SDK is software Development Kit generally refers to software development package, can include function library, compile program, etc.
2) JRE is Java runtime enviroment is the Java Runtime Environment, is intended for Java program users, not developers
2. Install the Python compiler
(1) Download the appropriate version of Python directly from the official website and click Install to
(2) General installation 2.7 version, because the online version of the 2.7 reference more, and many of the common Python plug-ins are currently updated to be compatible with the python2.7 version
3. Install the Eclipse platform
(1) Download the corresponding version of Eclipse from the official website, because the software is green software so no need to install, unzip to the specified path and open directly can
4. Installing the Pydev Plugin
(1) Download the corresponding version of Pydev and unzip it from the official website.
(2) After decompression there are features and plugins two folders, the contents of the two folders copied to the Eclipse directory in the corresponding features and plugins folder, restart Eclipse
(3) Enter Eclipse, open help-about eclipse-installation details-installed software and check if Pydev has been successfully installed
5. Test use
(1) Each time you open Eclipse, a dialog box appears, which allows you to specify the path to the Pydev project in workspace according to your preferences.
(2) Whenever a new path is specified that holds the Pydev project, the compiler specified by Pydev should be reconfigured, with the following steps: Open Eclipse-window-preferences-pydev-interpreters-python Interpreter, the interface is as follows: Click New to add the Python compiler
(3) Create a project: Open Eclipse-file-new-project-pydev-pydev Project and pop up the following interface:
After filling in the relevant information, set up the project test, right click on the new project folder, add Pydev package and name test, enter the package to add Pydev module named Test, Then we can write our Python code on the test.py.
Note: Python has a __init__.py file in each package, so that we can import the module in this directory.
(4) Edit code: Enter the following code in test.py
#coding =utf-8 "Created on August 20, 2014 @author: Collin" def Test (): Str= ' This was for test ' return str if __name__== ' __main__ ': str=test () print str
Right-click Test.py,run As-python Run to check if the operation is successful and if successful it will be displayed on the console: