Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtualenv with Eclipse (Galileo) [closed]

Tags:

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/

like image 774
Adam Nelson Avatar asked Jul 17 '09 19:07

Adam Nelson


People also ask

How do I know if Virtualenv is activated?

Note: Before installing a package, look for the name of your virtual environment within parentheses just before your command prompt. In the example above, the name of the environment is venv . If the name shows up, then you know that your virtual environment is active, and you can install your external dependencies.

How do I restart Virtualenv?

On the Web tab, use the "Reload" button to restart your website code using the new virtualenvs -- don't forget to do this for all of your websites if you have several. You will also need to restart any always-on tasks that use them -- just disable them, then enable them again.

How do I close Virtualenv?

You can exit from the virtualenv using exit command, or by pressing Ctrl+d.


1 Answers

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.

like image 102
Filip Dupanović Avatar answered Nov 20 '22 07:11

Filip Dupanović