views:

23

answers:

1

Hi,

I'm using Django and PyDev/Eclipse. I just installed django-treebeard with setup.py install and it got installed in my site-packages directory C:\Python26\Lib\site-packages. I can successfully import it in the python shell with import treebeard. However PyDev complains that it cannot resolve it when I try to import it.

Unfortunately I have no experience with PyDev and I assumed that it would automatically pick up everything in the site-packages directory but apparently it does not. What am I missing?

thanks

+2  A: 

Pydev doesn't automatically rescan the site-packages folder. You need to go to preferences->Interpreter - python and click apply to make it scan again.

THC4k
That seems a bit inconvenient but it makes sense. Should've tried that before asking, thanks for quick response.
Raoul Duke