Sep 21, 2020 Need to use older Eclipse/Java/Python. If you need to use an older version of Eclipse/Java/Python, below is the latest PyDev version to be used based on your requisites. Eclipse 4.5, Java 8: PyDev 5.2.0; Eclipse 3.8, Java 7: PyDev 4.5.5; Eclipse 3.x, Java 6: PyDev 2.8.2; Python 2.5 or older: PyDev 5.5.0. PyDev is a plugin that enables Eclipse to be used as a Python IDE (supporting also Jython and IronPython). It uses advanced type inference techniques which allow it to provide things such as code completion and code analysis, besides providing a debugger, interactive console, refactoring, tokens browser, django integration, etc. Homepage: pydev.org.
Install Python and Java before installing Eclipse.
- The official home of the Python Programming Language. While Javascript is not essential for this website, your interaction with the content will be limited.
- Eclipse logos and graphics are found on our logos page. For problems with the eclipse.org site, please contact the webmaster or read the webmaster FAQ for answers to common questions!
You may want to print these instructions before proceeding, so that you can refer to them while downloading and installing Eclipse. Or, just keep this document in your browser. You should read each step completely before performing the action that it describes. This document shows downloading and installing Eclipse on Windows 7 in Winter 2017.
Eclipse: (Neon)
The Eclipse download requires about 250 MB of disk space; keep it on your machine, in case you need to re-install Eclipse. When installed, Eclipse requires an additional 250 MB of disk space.
Downloading
- Click EclipseThe following page will appear in your browser. In this handout we will download Eclipse IDE for Eclipse Committers for Windows 32 Bit; if your computer uses Windows, continue below; otherwise choose either Mac Cocoa or Linux instead.It is critical that Java, Python, and Eclipse are either all 32 Bit or are all 64 Bit (and only if your Machine/OS supports 64 Bit): I think it easiest to use 32 Bit for everything.
- Click the 32-Bit (after Windows) to the right of the Eclipse IDE for Eclipse Committers. You will see the following page (don't worry about the name of the institution underneath the orange DOWNLOAD button).
- Click the orange DOWNLOAD button. The site named here, in orange to the right of the button: Canada - University of Waterloo Computer Science Clupb (http) is the random one chosen by the download page this time; yours may differ. This file should start downloading in your standard download folder, while showing a splash screen about donating to Eclipse. This file is about 250 Mb so it might take a while to download fully if you are on a slow internet connection (it took me about 5 minutes over a cable modem). Don't worry about the exact time as long as the download continues to make steady progress. In Chrome progress is shown on the bottom-left of the window, via the iconThe file should appear asTerminate the window browsing the Eclipse download.
- Move this file to a more permanent location, so that you can install Eclipse (and reinstall it later, if necessary).
- Start the Installing instructions directly below.
Installing (for Python)
Python and Java should be installed before installing Eclipse- Unzip eclipse-committers-newon-2-win32.zip, the file that you just downloaded and moved.
On my machine (running Windows 7), I can- Right-click the file.
- Hover over the IZArc command from the menu of options.
- Click Extract Here
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:
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 appearand then an Eclipse Launcher pop-up window will appear.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.
- 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. The Install pop-up window will appear.
- 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 toSelect 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 - Click Next >A new Install pop-up window will appear.
- 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
- Click FinishAn 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.If you see a Security Warning pop-up windowClick 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
- Click OKThe installation will finish (showing the final progress bars).A Software Updates pop-up window will appear.
- Click YesEclipse 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.
- 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.
- Click New... at the top-right of the top windowA 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).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
- Click OK. A Selection needed pop-up window will appear.Ensure that a check appears in all four checkboxes.
- Click OK. The Preferences pop-up window will be changed toOn 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.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 appearsEnsure 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. The Open Perspective pop-up window will appear.
- 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.
- Right-click the Java icon to the left of the PyDev icon and select closeThe Eclipse workbench will now have only the PyDev icon here and will look like
- Locate the workspace folder created in step 3 (see C:Usersyournameworkspace) 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.
- 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:Usersyournameworkspacecourselib).
- Click the courselib folder selected, and then click OK
- Click Apply (you will see some progress bars)
The < />< />< b=' /> pop-up window should now appear asNotice 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.
Bob Savage <bobsavage@mac.com>
Python on a Macintosh running Mac OS X is in principle very similar to Python onany other Unix platform, but there are a number of additional features such asthe IDE and the Package Manager that are worth pointing out.
4.1. Getting and Installing MacPython¶
Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, youare invited to install the most recent version of Python 3 from the Pythonwebsite (https://www.python.org). A current “universal binary” build of Python,which runs natively on the Mac’s new Intel and legacy PPC CPU’s, is availablethere.
What you get after installing is a number of things:
- A
Python3.8
folder in yourApplications
folder. In hereyou find IDLE, the development environment that is a standard part of officialPython distributions; and PythonLauncher, which handles double-clicking Pythonscripts from the Finder. - A framework
/Library/Frameworks/Python.framework
, which includes thePython executable and libraries. The installer adds this location to your shellpath. To uninstall MacPython, you can simply remove these three things. Asymlink to the Python executable is placed in /usr/local/bin/.
The Apple-provided build of Python is installed in
/System/Library/Frameworks/Python.framework
and /usr/bin/python
,respectively. You should never modify or delete these, as they areApple-controlled and are used by Apple- or third-party software. Remember thatif you choose to install a newer Python version from python.org, you will havetwo different but functional Python installations on your computer, so it willbe important that your paths and usages are consistent with what you want to do.IDLE includes a help menu that allows you to access Python documentation. If youare completely new to Python you should start reading the tutorial introductionin that document.
If you are familiar with Python on other Unix platforms you should read thesection on running Python scripts from the Unix shell.
4.1.1. How to run a Python script¶
Your best way to get started with Python on Mac OS X is through the IDLEintegrated development environment, see section The IDE and use the Help menuwhen the IDE is running.
If you want to run Python scripts from the Terminal window command line or fromthe Finder you first need an editor to create your script. Mac OS X comes with anumber of standard Unix command line editors, vim andemacs among them. If you want a more Mac-like editor,BBEdit or TextWrangler from Bare Bones Software (seehttp://www.barebones.com/products/bbedit/index.html) are good choices, as isTextMate (see https://macromates.com/). Other editors includeGvim (http://macvim-dev.github.io/macvim/) and Aquamacs(http://aquamacs.org/).
To run your script from the Terminal window you must make sure that
/usr/local/bin
is in your shell search path.To run your script from the Finder you have two options:
- Drag it to PythonLauncher
- Select PythonLauncher as the default application to open yourscript (or any .py script) through the finder Info window and double-click it.PythonLauncher has various preferences to control how your script islaunched. Option-dragging allows you to change these for one invocation, or useits Preferences menu to change things globally.
4.1.2. Running scripts with a GUI¶
With older versions of Python, there is one Mac OS X quirk that you need to beaware of: programs that talk to the Aqua window manager (in other words,anything that has a GUI) need to be run in a special way. Use pythonwinstead of python to start such scripts.
With Python 3.8, you can use either python or pythonw.
4.1.3. Configuration¶
Python on OS X honors all standard Unix environment variables such as
PYTHONPATH
, but setting these variables for programs started from theFinder is non-standard as the Finder does not read your .profile
or.cshrc
at startup. You need to create a file~/.MacOSX/environment.plist
. See Apple’s Technical Document QA1067 fordetails.For more information on installation Python packages in MacPython, see sectionInstalling Additional Python Packages.
4.2. The IDE¶
MacPython ships with the standard IDLE development environment. A goodintroduction to using IDLE can be found athttp://www.hashcollision.org/hkn/python/idle_intro/index.html.
4.3. Installing Additional Python Packages¶
There are several methods to install additional Python packages:
- Packages can be installed via the standard Python distutils mode (
pythonsetup.pyinstall
). - Many packages can also be installed via the setuptools extensionor pip wrapper, see https://pip.pypa.io/.
Eclipse For Mac Python Ide
4.4. GUI Programming on the Mac¶
There are several options for building GUI applications on the Mac with Python.
PyObjC is a Python binding to Apple’s Objective-C/Cocoa framework, which isthe foundation of most modern Mac development. Information on PyObjC isavailable from https://pypi.org/project/pyobjc/.
The standard Python GUI toolkit is
tkinter
, based on the cross-platformTk toolkit (https://www.tcl.tk). An Aqua-native version of Tk is bundled with OSX by Apple, and the latest version can be downloaded and installed fromhttps://www.activestate.com; it can also be built from source.wxPython is another popular cross-platform GUI toolkit that runs natively onMac OS X. Packages and documentation are available from https://www.wxpython.org.
PyQt is another popular cross-platform GUI toolkit that runs natively on MacOS X. More information can be found athttps://riverbankcomputing.com/software/pyqt/intro.
4.5. Distributing Python Applications on the Mac¶
The standard tool for deploying standalone Python applications on the Mac ispy2app. More information on installing and using py2app can be foundat http://undefined.org/python/#py2app.
4.6. Other Resources¶
Java Eclipse For Mac
The MacPython mailing list is an excellent support resource for Python users anddevelopers on the Mac:
Eclipse For Mac Python Tutorial
Another useful resource is the MacPython wiki: