【发布时间】:2020-04-16 17:46:07
【问题描述】:
我正在尝试从 R 连接到 Athena。设置 'RAthena' 并连接后,我收到此错误:
Error: Boto3 is not detected please install boto3 using either: `pip install boto3` in terminal or `install_boto()`.
Alternatively `reticulate::use_python` or `reticulate::use_condaenv` will have to be used if boto3 is in another environment.
所以通过使用pip install,我在 Python 2 和 Python 3 中都安装了boto3。
Requirement already up-to-date: boto3 in ./Library/Python/2.7/lib/python/site-packages (1.12.39)
Requirement already satisfied: boto3 in ./Library/Python/3.7/lib/python/site-packages (1.12.39)
但是在R 中,我仍然遇到同样的错误。然后我尝试在R 中使用install_boto()。
它告诉我做如下:
Installation complete. Please restart R.
然后我将永远留在这个Restarting R session... 输出中,并且永远不会看到任何成功重启的注释。
最后R还是检测不到boto3。
【问题讨论】:
标签: python r boto3 amazon-athena pyathena