简体   繁体   中英

Import boto3 error in python

I installed boto3 using pip2.7 install boto3 . Now when I do python2.7 script.py which has import boto3 , I get ImportError: No module named boto3 . When I again do pip2.7 install boto3 I get Requirement already satisfied (use --upgrade to upgrade): boto3 in /usr/local/lib/python2.7/site-packages .

Why is this error coming and how can I resolve it?

NOTE: I did pip2.7 install boto3 based on this SO question

I have faced the same issue and also not using virtual environment. easy_install is working for me. I am using ubuntu 16.04 and python version 2.7

easy_install boto3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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