我在EMR上安装boto3时遇到问题。这是我当前正在使用的引导脚本:
#!/bin/bash
# Install Python 3 kernel
sudo yum install python3
sudo yum install python3-pip
sudo pip3 install -U boto3
我检查了日志,并说boto3已成功安装,但是当我尝试将其导入Jupyter笔记本时,我得到ModuleNotFoundError:没有名为'boto3'的模块
想通了。使用pyspark内核启动笔记本,然后运行以下命令:
sc.install_pypi_package(“boto3”)