Eclipse and pydev build a python Development Environment (Windows)

Source: Internet
Author: User

1. Download Software

32-bit jdk6 Development Kit http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html

32-bit eclipse http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr1

Python 2 + http://www.python.org/download/releases/2.6.6/

Pydev software (which can be downloaded or installed online) http://www.pydev.org/updates

Note: The downloaded software is in the same number of digits as the operating system and the computer.

Such as a combination:

  • JDK 6 u20 64bit for Windows
  • Python 2.6.4
  • Eclipse 3.5.1 64bit for Windows
  • Pydev plug-in for eclipse
  •  

     

    2 install JDK 6

    Step by step. Environment variables need to be configured after installation, and some do not.

     

    3. Install eclipse

    The green software. Unzip the package.

     

    4. Install Python

    Install the SDK step by step. Pay attention to the environment variables.

     

    5. Install the pydev plug-in for eclipse

    Two methods:

    1. Download the zip package directly.
    2. automatically update pydev through eclipse
    In the second method, the problem I encountered was that the installation was half done and the progress could not continue.

    Method 1: however, it is said that the installation through the zip package may be incompatible. In eclipse 3.5, I downloaded1. 6.3.2010100513.zip (6.6 MB)
    After decompression, place the two folders in the compressed package under the dropins folder of the eclipse directory. It runs smoothly. For detailed configuration, see the official documentation.

    ////////////////////////////////////////

    StartEclipse> preferences, InPreferencesSelectInstall update/availabe software site:

    ClickAdd, Add an Update site name: pydev location: http://www.pydev.org/updates, then confirm OK:

    Return to the preferences page. You can see that the update site has been added. OK:

    In the eclipse menu bar, clickHelp> install new software...Go to the install interface, select the added pydev site in the work with: drop-down box, and click Next next:

    The Install interface lists the plug-ins to be installed, continue to next, and then agree to the Protocol. Click OK to start installation:

    After the installation is complete, the system prompts you to restart eclipse and confirm the restart.

    6. Configure the pydev plug-in.

    There is a lot of information on the Internet

    After restarting eclipse, goPreferencesInterface, in the left-side menu bar, selectPydev> interpreter-PythonConfigure the python interpreter. If Python has been installed on the operating system, clickAuto configIf you still cannot find it, you need to manually add it. Click new .... InSelect interpretorEnter the interpreter name and the path of the interpreter python.exe in the interface. I have installed python2.6 and the path is under D: \ python26.

     

     

    7. Test the development of Python

    ClickFile> New> project...

    In the Project Wizard, select the project typePydev> pydev Project:

    If the project is not in the pydev view after it is created, clickWindow> open perspective> other...Select the pydev view.

    Create a new Python package in the project, right-click SRC, new> pydev package, select the source file path and enter the package name:

    In _ init _. py, input print ("Hello World") and press F9 to see the output. This indicates that the development environment is successfully installed!

     

    Refer:

    Http://blog.imfickle.com /? P = 24

     

     

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.