Python 在R中,即使安装了Boto3,也没有Boto3连接雅典娜的错误
我正在尝试从R连接到雅典娜。在设置“RAthena”和连接后,我出现以下错误:Python 在R中,即使安装了Boto3,也没有Boto3连接雅典娜的错误,python,r,boto3,amazon-athena,pyathena,Python,R,Boto3,Amazon Athena,Pyathena,我正在尝试从R连接到雅典娜。在设置“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
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安装
,我在Python2和Python3中安装了bot3
Requirement already up-to-date: boto3 in ./Library/Python/2.7/lib/python/site-packages (1.12.39)
但是在R
中,我仍然有同样的错误。然后我尝试在R
中使用install\u boto()
。
它告诉我要做以下事情:
Installation complete. Please restart R.
然后我将永远呆在这个重新启动R会话…
输出中,永远看不到任何成功重新启动的提示。
最后,
R
仍然无法检测到bot3
听到您对RAthena
软件包有问题,我感到非常抱歉。您能告诉我您正在运行的软件包的版本吗
您是否尝试过通过networkite
设置您正在使用的python?例如:
library(DBI)
# specifying python conda environment
reticulate::use_condaenv("RAthena")
# Or specifying python virtual enviroment
reticulate::use_virtualenv("RAthena")
con <- dbConnect(RAthena::athena())
库(DBI)
#在环境中指定python
网状:使用“拉特纳”
#或者指定python虚拟环境
网状:使用虚拟(“RAthena”)
谢谢你的详细解释。我确实需要使用networkite
方法来继续。而且python3-mpip安装了一些模块
也对我有用。使用noctua
为我解决了这个问题
library(DBI)
# specifying python conda environment
reticulate::use_condaenv("RAthena")
# Or specifying python virtual enviroment
reticulate::use_virtualenv("RAthena")
con <- dbConnect(RAthena::athena())