简体   繁体   中英

boto3 module not found

My Pyspark EC2 instance got terminated (my fault) and I am trying to build another one. I have Spark running and now am trying to run a simple Pyspark script to access S3 bucket. The machine has Python 3 installed and I installed boto3 but I get compilation error for the line below.

from boto3.session import Session

No module named 'boto3'.

Also, I get a logger error saying invalid syntax when I do the following

print rddtest.take(10)

Not sure what I am missing. Thanks in advance.

You might have many python installations in your machine. pip might be installing boto3 for python3.6 while you are currently executing python3.7

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