【问题标题】:Installing a python library in an R notebook on Google Colab在 Google Colab 上的 R 笔记本中安装 python 库
【发布时间】:2020-11-28 05:34:45
【问题描述】:

我正在尝试在 Google Colab 上的 R 笔记本中安装 python 库,为此我使用了“网状”包:

library(reticulate)
py_install("pandas")

但是我得到了这个错误:

Error: could not find a Python environment for /usr/bin/python3

是否有解决此错误的方法?

【问题讨论】:

    标签: python r google-colaboratory


    【解决方案1】:

    您无法直接在 Google Colab 中执行此操作,但您可以与本地运行时共享它。 Google Colab 不支持安装新版本的 python 或 R。如果你在 R notebook 中,你只能使用 R,因为 Colab 云计算机上没有安装 python。但是,如果您连接到本地运行时,您可以使用这些功能。

    您可以查看以下链接了解更多信息:

    How to use R and Python with Google Colaboratory Notebook?

    How to use R with Google Colaboratory?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-08
      • 2020-06-28
      • 2020-05-05
      • 1970-01-01
      • 2019-11-02
      • 2021-12-20
      • 2021-02-02
      • 2020-08-07
      相关资源
      最近更新 更多