简体   繁体   English

安装后无法导入boto3库

[英]Unable to import boto3 library after installation

I installed boto3 library from AWS SDK but when I try to import in python interpreter, I get error. 我从AWS开发工具包安装了boto3库,但是当我尝试在python解释器中导入时,出现错误。 Here is the traceback: 这是回溯:

import boto3 Traceback (most recent call last): File "", line 1, in File "/home/rahul/rahul/boto3/boto3/ init .py", line 16, in from boto3.session import Session File "/home/rahul/rahul/boto3/boto3/session.py", line 17, in import botocore.session ImportError: No module named 'botocore' 从boto3.session导入boto3 Traceback(最近一次通话最后一次):文件“”,行1,在文件“ / home / rahul / rahul / boto3 / boto3 / init .py”中,行16,导入会话文件“ / home” /rahul/rahul/boto3/boto3/session.py“,第17行,在导入botocore.session ImportError中:没有名为“ botocore”的模块

Can you please help me fix this issue? 您能帮我解决这个问题吗?

Apparently you have installed boto3 but not botocore 显然您已经安装了boto3,但没有安装botocore

botocore is the basis of boto3 but is lower level botocore是boto3的基础,但级别较低

See https://pypi.python.org/pypi/botocore 参见https://pypi.python.org/pypi/botocore

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM