Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近安装了 twython,这是一个非常时尚且很棒的 Python 推特 API 包装器。我安装了它,它在解释器中运行良好,但是当我尝试通过 Eclipse 导入它时,它说 twython 是无效的导入。
我如何“告诉” eclipse twython 在哪里,以便它可以让我导入和使用它?
我相信我以前遇到过这个问题 - 尝试进入菜单:Window_Preferences,然后选择 Pydev 和 Interpreter-Python。然后尝试单击 Auto-config - 它应该更新其搜索路径以包含 Python 中安装的所有内容。如果这不起作用,您至少应该能够通过单击该屏幕底部的“新建文件夹”并导航到安装了 twython 的位置来手动添加文件夹。
丹尼尔是对的。只要 twython 进入站点包,Pydev 就会找到它。