Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9074931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:44:48+00:00 2026-06-16T18:44:48+00:00

I am using PyDev for Eclipse as my IDE and pip as my package

  • 0

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:

enter image description here

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/python as the interpreter as the screenshot indicates, some of the basic modules are not resolved in eclipse, eg. import copy, import json etc. should I use default /usr/bin/python as interpreter and just add virtual env site-package to the PYTHONPATH? so that I can resolve both standard python libraries(eg. json) and my own project dependencies?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:44:49+00:00Added an answer on June 16, 2026 at 6:44 pm

    Make sure your system PYTHONPATH include the site-packages folder when you choose python interpreter from your virtualenv. Just like the snapshot.
    enter image description here

    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 copy and json.

    PS: My environment is Max OSX 10.8. Please check the output of your own platform by print sys.path

    /Users/username/.virtualenvs/test/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
    /Users/username/.virtualenvs/test/lib/python2.7/site-packages/pip-1.1-py2.7.egg
    /Users/username/.virtualenvs/test/lib/python27.zip
    /Users/username/.virtualenvs/test/lib/python2.7
    /Users/username/.virtualenvs/test/lib/python2.7/plat-darwin
    /Users/username/.virtualenvs/test/lib/python2.7/plat-mac
    /Users/username/.virtualenvs/test/lib/python2.7/plat-mac/lib-scriptpackages
    /Users/username/.virtualenvs/test/lib/python2.7/lib-tk
    /Users/username/.virtualenvs/test/lib/python2.7/lib-old
    /Users/username/.virtualenvs/test/lib/python2.7/lib-dynload
    /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
    /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
    /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
    /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
    /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
    /Users/username/.virtualenvs/test/lib/python2.7/site-packages
    

    I think this is the requirement of virtualenv. You need to add these paths into pydev system PYTHONPATH. Then you can use these basic modules.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PyDev 2.5 in eclipse. When ever I use a raw_input command and
I'm learning Python and Django using the Eclipse Pydev plugin. I want the internal
I am using eclipse pydev IDE for coding python. I found that by default
I'm using Eclipse / PyDev trying to find a way to debug code that
I am using two different perspectives in Eclipse PyDev. One is for normal development,
I am writing a compiler in Python using Eclipse with PyDev. I've come to
I wonder, using Eclipse's PyDev plugin , how come documentation does not always show
I am using Eclipse with the PyDev plugin. I am using xlwt which is
I'm using the PyDev for Eclipse plugin, and I'm trying to set a break
I've created a project using PyDev plugin for Eclipse. Now I need to add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.