Cài đặt eclipse pydev trên window 7 32nit

If you do not have IZArc or an equivalent unzipping program, here is the web site to download a free copy of IZarc.

Unzipping this file creates a folder named eclipse; unzipping 250 MB can take a few minutes. You can leave this folder here or move it elsewhere on your hard disk. I recommend putting the downloaded file and resulting folder in the C:\Program Files\ directory.

  • Create a shortcut on your desktop to the eclipse.exe file in this eclipse folder:
    Cài đặt eclipse pydev trên window 7 32nit

    On most Windows machines, you can
    • Right-press the file eclipse.exe
    • Drag it to the desktop.
    • Release the right button.
    • Click Create shortcut here

    Now you are ready to perform a one-time only setup of Eclipse on your machine.

  • Double-click the shortcut to Eclipse that you just created above.

    The following splash screen will appear

    Cài đặt eclipse pydev trên window 7 32nit

    and then an Eclipse Launcher pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

    In the Workspace text box, your name should appear between C:\Users\ and \workspace, instead of Pattis.

    Leave unchecked the Use this as the default and do not ask again box. Although you will use this same workspace for the entire quarter (checking projects in and out of it), it is best to see this Workspace Launcher pop-up window each time you start Eclipse, to remind you where your workspace is located.

    In fact, it is a good idea to create on your desktop a shortcut to your workspace folder; but you must click OK (see below) before Eclipse creates this folder and you can create a shortcut to it.

  • Click OK.

    Progress bars will appear as Eclipse loads.

    Eventually the Eclipse workbench will appear with a Welcome tab covering it.

    Cài đặt eclipse pydev trên window 7 32nit

  • Terminate (click X on) the Welcome tab.

    You will not see the Welcome tab when you start Eclipse again, after this first time.

  • Click Help (on the far right of the line below this window's blue title Java - Eclipse) and then click Install New Software... in its pull-down menu, as shown below.

    Cài đặt eclipse pydev trên window 7 32nit

    The Install pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

  • Enter the text (or cut/paste from this document) http://pydev.org/updates into the Work with text box and press Enter (if that doesn't work, try http://www.pydev.org/updates).

    In a few seconds the information under Name should change from
    There is no site selected to Pending to

    Cài đặt eclipse pydev trên window 7 32nit

    Select only the top PyDev checkbox; do NOT select the PyDev Mylyn Integration (optional) box.
    Check before proceeding that the Install pop-up window appears as

    Cài đặt eclipse pydev trên window 7 32nit

  • Click Next >

    A new Install pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

  • Click Next >

    A new Install pop-up window will appear.

    Select the I accept the terms of the license agreement radio button, so the window appears as

    Cài đặt eclipse pydev trên window 7 32nit

  • Click Finish

    An Installing Software pop-up window will appear. During installation, it will show the various operations it is performing and a progress bar for each one. Because the installer is fetching various files online, this process might take a few minutes.

    Cài đặt eclipse pydev trên window 7 32nit

    If you see a Security Warning pop-up window

    Cài đặt eclipse pydev trên window 7 32nit

    Click OK.

    The installation will pause, and a Selection Needed pop-up window appears.

  • Check the box labeled Brainwy Software; Pydev; Brainwy.

    Check before proceeding that the Install pop-up window appears as

    Cài đặt eclipse pydev trên window 7 32nit

  • Click OK

    The installation will finish (showing the final progress bars).

    A Software Updates pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

  • Click Yes

    Eclipse will terminate and restart. As you did in step 4, terminate (click OK on) the Welcome Tab.

  • Click Window (to the left of Help on the far right of the line below this window's blue title workspace Java - Eclipse) and then click Preferences in its pull-down menu, as shown below.

    Cài đặt eclipse pydev trên window 7 32nit

  • Drill down to select the interpreter:
    • Disclose PyDev by clicking the + in front of PyDev or double-clicking PyDev (after the +); the + changes to a -.
    • Disclose Interpreters by clicking the + in front of Interpreters or double-clicking Interpreters (after the +); the + changes to a -.
    • Select Python - Interpreter.
    The Preferences pop-up window should appear as follows

    Cài đặt eclipse pydev trên window 7 32nit

  • Click New... at the top-right of the top window

    A Select Interpreter pop-up window appears.

    Click Browse and the Open pop-up window should show you the folder in which Python was installed (here Python 3.6).

    Cài đặt eclipse pydev trên window 7 32nit

    Double-click python.exe (or select it and click Open).

    Change the Name in the Select Interpreter pop-up window to be simply Python36 (or whatever version of Python is installed). The Select Interpreter pop-up window should appear as

    Cài đặt eclipse pydev trên window 7 32nit

  • Click OK.

    A Selection needed pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

    Ensure that a check appears in all four checkboxes.

  • Click OK.

    The Preferences pop-up window will be changed to

    Cài đặt eclipse pydev trên window 7 32nit

    On my system the path to the Python interpreter was so long, not all of it could be seen under Location

  • Click OK.

    A Progress Information pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

    During installation, it will show the various operations it is performing and a progress bar for each one. Eventually the installation will terminate.

    If the following pop-up window appears

    Cài đặt eclipse pydev trên window 7 32nit

    Ensure the "Public networks, such as those in airports...." checkbox is NOT checked, and then click Allow Access.

  • Click Window (to the left of Help on the far right of the line below this window's blue title workspace - Java - Eclipse), hover over Perspective then Open Perspective in the pull-down menu and then click Other... in the next pull-down menu.

    Cài đặt eclipse pydev trên window 7 32nit

    The Open Perspective pop-up window will appear.

    Cài đặt eclipse pydev trên window 7 32nit

  • Double-click PyDev (third from the bottom)

    The blue label on the Eclipse window will change to workspace - PyDev - Eclipse, the Package Explorer in the upper-left tab will change to PyDev Package Explorer, and a PyDev icon will appear to the right of the Java icon.

    Cài đặt eclipse pydev trên window 7 32nit

  • Right-click the Java icon to the left of the PyDev icon and select close

    Cài đặt eclipse pydev trên window 7 32nit

    The Eclipse workbench will now have only the PyDev icon here and will look like

    Cài đặt eclipse pydev trên window 7 32nit

  • Locate the workspace folder created in step 3 (see C:\Users\yourname\workspace) and download the courselib.zip file into this workspace and unzip it there, producing the courselib folder; it should should contain a bunch of Python module files (ending in .py). From time to time you will be asked to put other course-specific Python module files into this courselib folder; these modules will be usable in all Python projects in Eclipse.

  • Inform Eclipse to use the courselib folder in all Python projects.
    • Select Window | Preferences.
    • Disclose PyDev by clicking the + in front of PyDev or double-clicking PyDev (after the +); the + changes to a -.
    • Disclose Interpreters by clicking the + in front of Interpreters or double-clicking Interpreters (after the +); the + changes to a -.
    • Select Python - Interpreter.

      Cài đặt eclipse pydev trên window 7 32nit

    • Click the Libraries tab (leftmost, above the bottom pane)
    • Click the New Folder button (topmost, right of the bottom pane)
    • Browse to the courselib folder (added above) in the Browse for Folder pop-up window (C:\Users\yourname\workspace\courselib).
    • Click the courselib folder selected, and then click OK
    • Click Apply (you will see some progress bars)
      The pop-up window should now appear as

      Cài đặt eclipse pydev trên window 7 32nit

      Notice a fifth entry (ending in courselib appears at the bottom of the bottom pane named System PYTHONPATH

    • Cick OK

  • Terminate (click X on) the Eclipse window.