Yesterday I tried to get Eclipse and PyDev installed on my MacBook Pro (running Mavericks). After a couple of hours of struggling I gave up and discovered LiClipse which is a highly recommended system for working with Python and many other languages from the Eclipse framework.
I used a clean OS X Mavericks virtual machine to get my installation nailed down, especially important since I wanted to work with Python 3.x.
Download and install:
- Python 3.x.
- Java 7.
- LiClipse: click the Google Drive link, select the latest version (currently 0.9.6), click and download the OS X file (currently liclipse_0.9.6_macosx.cocoa.x86_64.dmg), then install using all default options.
Eject all download package (DMG) folders on the desktop.
Use Finder and go to Applications, open the liclipse folder, then drag the LiClipse app to the dock.
Run LiClipse. If a software update prompt appears for Java SE 6 then install it.
Hit Next, then set a project name and click the link to configure an interpreter:
Select the advanced configuration option:
Then select python3.3:
On the next screen make sure all folders are selected:
Back on the new project screen make any other changes – I opted not to configure the Python path – then click Finish:
The Open Associated Perspective prompt may appear – I chose to associate the project with the PyDev perspective:
These Python and perspective settings will be used the next time LiClipse is started for Python projects.
Quick Python test
Following on from the above new I added a new Python file, entered a couple of lines of code, and ran it:
If the debugger is used, for example by stepping through the code, there’ll be an option to switch to another perspective – this should be used for debugging:
This presents more window areas for examining variables, viewing the editor and console output, etc:
- Window | Open Perspective | Other, then select PyDev.