我正在尝试从 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
,我同时安装boto3
了 Python 2 和 Python 3。
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
,我仍然有同样的错误。然后我尝试使用install_boto()
in R
。它告诉我做如下:
Installation complete. Please restart R.
然后我会永远留在这个Restarting R session...
输出中,永远不会看到任何成功重启的说明。最后,R
仍然无法检测到boto3
。