Build a Python Development Environment on Windows 7: Eclipse + Pydev

Source: Internet
Author: User
Tags windows x64

I want to learn python from today, but I still don't know it at all. Therefore, this article serves as the beginning.

From: http://blog.imfickle.com /? P = 24

Because of project requirements, I need to install a Python Development and Integration Environment on a new notebook with Windows 7 installed. Python 3.0 is greatly changed, and the current version of Django is compatible with Python 3.0. Therefore, Python 2.6 is selected. After comparison with IDE, Eclipse + Pydev is used. To be honest, developing Python and Ruby applications on Windows is far from as good as mac OS X and Ubuntu Linux.

The installation environment I need:

  • Windows 7.0 Ultimate 64BIT (Ver 6.1 7600)
  • JDK 6 u20 64BIT for windows
  • Python 2.6.4
  • Eclipse 3.5.1 64bit for Windows
  • Pydev plug-in for Eclipse

The entire installation process is still relatively smooth. The specific process is as follows:

1. download Python 2.6.4 and install, Python home page http://www.python.org/downloads but now is GFW harmony, can access the http://www.python.org/ftp/python/ (it is strange that python.com is a porn site not GFW, but closed Python.org ).

2. Because Windows 7 is 64bit, So download and install 64bit JDK (http://java.sun.com/javase/downloads/widget/jdk6.jsp) platform select Windows X64.

3. Download Eclipse 3.5.1 64bit for Windows, address (http://download.eclipse.org/eclipse/downloads/drops/R-3.5.1-200909170800/download.php? Dropfileappseclipse-sdk-3.5.1-win32-x86_64.zip ). Decompress the package to your desired path.

The next step is to configure Eclipse.

1) StartEclipse> Preferences, InPreferencesSelectInstall Update/Availabe Software Site:

Open the Eclipse Preferences Configuration window.

2) ClickAdd, Add an Update site Name: Pydev Location: http://www.pydev.org/updates, then confirm OK:

Add Pydev Update site

3) return to the Preferences page. You can see that the update site has been added. OK:

Confirm the added Pytev Update site

4) on 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:

Select the Pydev site and Next

5) the Install interface lists the plug-ins to be installed, continue to Next, and then agree to the Agreement. Click OK to start the installation:

Pydev plug-in to be installed

Accept the installation protocol

Start installing Pydev

6) after the installation is complete, the system prompts you to restart Eclipse and confirm the restart:

Yes. Restart Eclipse.

7) Restart Eclipse and then enterPreferencesInterface, 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.

Configure the Python Interpreter

Select library file confirmation

Return to the Preferences page to confirm the configuration.

8) now the Python environment has been set up. You can create a project to test whether the environment is normal. ClickFile> New> Project...

Create a project

9) in the Project Wizard, select the project typePydev> Pydev Project:

Select a Python project type

Name the Project, select Python for the Project type, select the Python version, and click Finish.

Project created

10) if the project is not in the Pydev view after it is created, clickWindow> Open Perspective> Other...Select the Pydev view.

Select other Perspective Interfaces

In the View Selection window, select Pydev

11) Create a New Python Package in the project, right-click src, New> Pydev Package, and select the source file path and input Package name:

Create a Python package

12) Input print ("Hello World") in _ init _. py and press F9 to see the output. This indicates that the development environment has been installed successfully!

Hello World! Installed successfully

For more information, see http://pydev.org/manual.html. It can be said that the Python Development Environment built on Windows 7 is still very smooth.

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.