gpt4 book ai didi

python - eclipse + PyDev : Eclipse telling me that this is an invalid import?

转载 作者:太空宇宙 更新时间:2023-11-04 01:43:24 25 4
gpt4 key购买 nike

我最近安装了 twython,这是一个非常时尚且很棒的 Python Twitter API 包装器。我安装了它,它在解释器中工作正常,但是当我尝试通过 Eclipse 导入它时,它说 twython 是无效导入。

我如何“告诉”eclipse twython 在哪里,以便它允许我导入和使用它?

最佳答案

我相信我以前遇到过这个问题 - 尝试进入菜单:Window_Preferences,然后选择 Pydev 和 Interpreter-Python。然后尝试单击自动配置 - 它应该更新其搜索路径以包括在 Python 中安装的所有内容。如果这不起作用,您至少应该能够通过单击该屏幕底部的“新建文件夹”并导航到安装 twython 的位置来手动添加文件夹。

关于python - eclipse + PyDev : Eclipse telling me that this is an invalid import?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2590435/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com