user2566898
user2566898

Reputation: 1717

Python libraries in eclipse

I have installed eclipse and python to program my project. I noticed that when I import some libraries as "from scipy import stats", I received an error stating "unresolved import stats".

However, when I checked the built in libraries that exists on /usr/lib/python2.7, I found scipy folder in that directory.

Do I need to add EACH FOLDER for the library, or just the parent folder will include the subfolders as well?

Thanks,

Upvotes: 0

Views: 223

Answers (1)

Matt
Matt

Reputation: 3557

If you go into Eclipse's Preferences and find PyDev you should see a list of libraries. If you're not noticing your library there you can add it manually. I myself haven't ever had a problem with newly installed packages so it's possible you didn't set it up/install the packages correctly.

Preferences -> PyDev -> (Find your library/package)

Upvotes: 1

Related Questions