I am using PyDev for Eclipse as my IDE and pip as my package management tool, running virtualenv.
Every time I want to use/include some new libraries or new dependencies in my project, I add them into the pip-requires file. The dependencies are installed in my virtual environment with no problem after running pip install -r pip-requires.
My Env:
- Ubuntu 12.04
- PyDev for Eclipse 2.7.1.2012100913
- Python 2.7.3
- Eclipse indigo
Update: My Pydev Setup:

Questions:
- eclipse/pydev knows nothing about the new libraries being added in my virtual env. I had to manually add the .egg source folder into eclipse project’s PYTHONPATH one by one in order to resolve all the unresolved imports which was very annoying! Can the python dependencies be resolved in a easier manner?
Update:
- I found that if I use virtual env
Env/bin/pythonas the interpreter as the screenshot indicates, some of the basic modules are not resolved in eclipse, eg.import copy, import jsonetc. should I use default/usr/bin/pythonas interpreter and just add virtual envsite-packageto the PYTHONPATH? so that I can resolve both standard python libraries(eg. json) and my own project dependencies?
Make sure your system PYTHONPATH include the site-packages folder when you choose python interpreter from your virtualenv. Just like the snapshot.

Then you don’t need to add them one by one into PYTHONPATH. You will need to restart eclipse (Refresh doesn’t work). New models will be added.
Update:
I checked the PYTHONPATH in the virtualenv. I found there are some other paths in the sys.path. They are the system default python installed location. These path includes the basic models, like
copyandjson.PS: My environment is Max OSX 10.8. Please check the output of your own platform by
print sys.pathI think this is the requirement of virtualenv. You need to add these paths into pydev system PYTHONPATH. Then you can use these basic modules.