eclipse python添加库文件,Eclipse和python:库将导入解释器,但不会在IDE中导入

用户在Eclipse中遇到一个问题,虽然通过python setup.py install成功安装了boto库,并且在命令行中可以正常导入,但在Eclipse环境中却无法找到该库。尝试将库作为外部源文件夹添加未解决问题。解决方案可能涉及检查Eclipse的Python解释器配置。
摘要由CSDN通过智能技术生成

I'm running Windows 7, Python 2.6.4 and the latest version of Eclipse. I downloaded the boto library (http://code.google.com/p/boto/) and ran python setup.py install, which created boto-1.9b-py2.6.egg in C:\Python26\Lib\site-packages.

Importing a class - say, by doing 'from boto.sqs.connection import SQSConnection' - works fine from the python command line tool. But Eclipse will not find boto, despite the fact that it is using the same python interpreter as I am using when at the command line. I added the library as an external source folder, but that didn't work either. How can I properly import the boto library into Eclipse?

Thanks.

解决方案

From the comment so can be marked as answered

In Preferences->Pydev->interpreter - Python what is the System libs value

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值