Virtualenv with Eclipse (Galileo)

Adam Nelson picture Adam Nelson · Jul 17, 2009 · Viewed 15.3k times · Source

Does anybody have directions for getting Eclipse (Galileo), PyDev, and Virtualenv working together? I'm specifically trying to run Pinax but any instructions are fine.

I thought I had it (and even blogged everything but the final step - interactive debugging) and still there is no solution. I'm specifically on OS X but any answer should be sufficient. This is the best resource I've found so far:

http://blog.vlku.com/index.php/2009/06/10/djangoeclipse-with-code-complete-screencast/

Answer

Filip Dupanović picture Filip Dupanović · Mar 11, 2010

I'd disagree with having to go through all the hassle of creating and maintaining a separate workspace for every virtual environment.

All you need to do is set up a separate interpreter per virtualenv and make sure the project is using it.

Along with your standard interpreters such as Python 2.5, Python 2.6, Python 3.1 you'll also add some more along the lines My Django Website, My Cool Project, My Other Cool Project--where each interpreter will have all the PYTHONPATH entries as it's virtualenv would provide.