views:

121

answers:

2

I recently installed twython, a really sleek and awesome twitter API wrapper for Python. I installed it and it works fine from the interpreter, but when I try to import it via Eclipse, it says that twython is an invalid import.

How do I "tell" eclipse where twython is so that it will let me import and use it?

+2  A: 

I believe I have had this problem before - try going into the menu: Window_Preferences and then select Pydev and Interpreter-Python. Then try to click Auto-config - it should update its search paths to include everything installed in Python. If that doesn't work, you should at least be able to manually add the folder by clicking "New Folder" in the bottom part of that screen and navigating to the location where you have twython installed.

Daniel G
A: 

Daniel is right. As long as twython went into site-packages then Pydev will find it.

colgur