gpt4 book ai didi

python - Eclipse 和 python : library will import in interprer, 但不在 IDE 中

转载 作者:太空宇宙 更新时间:2023-11-03 19:37:28 24 4
gpt4 key购买 nike

我运行的是 Windows 7、Python 2.6.4 和最新版本的 Eclipse。我下载了 boto 库 ( http://code.google.com/p/boto/ ) 并运行 python setup.py install,这在 C:\Python26\Lib\site-packages 中创建了 boto-1.9b-py2.6.egg。

导入类 - 例如,通过执行“from boto.sqs.connection import SQSConnection” - 从 python 命令行工具可以正常工作。但是 Eclipse 不会找到 boto,尽管它使用与我在命令行时使用的相同的 python 解释器。我将库添加为外部源文件夹,但这也不起作用。如何正确地将boto库导入到Eclipse中?

谢谢。

最佳答案

从评论中可以将其标记为已回答

在“首选项”->“Pydev”->“解释器 - Python”中,系统库值是什么

关于python - Eclipse 和 python : library will import in interprer, 但不在 IDE 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2767808/

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