【问题标题】:R installation not finding anaconda packagesR安装找不到anaconda包
【发布时间】:2020-12-23 00:38:03
【问题描述】:

我试图在 R 中安装一些软件包,但遇到了错误:

Error: package or namespace load failed for ‘leiden’:
 .onAttach failed in attachNamespace() for 'leiden', details:
  call: py_module_import(module, convert = convert)
  error: ModuleNotFoundError: No module named 'pandas'

这对我来说很奇怪,因为我肯定有熊猫:

$ conda list | grep pandas
pandas                    1.0.1            py37h0573a6f_0

还有哪个 python 似乎给了我我的 anaconda 安装:

/home/usrname/anaconda3/bin/python

我正在 WSL(Linux 的 Windows 子系统)Ubuntu 上安装这些软件包。

任何建议表示赞赏。

【问题讨论】:

    标签: python r pandas


    【解决方案1】:

    我最终发现了另一个类似问题的问题。原来我需要激活 conda r-reticulate 环境。

    在这里查看类似的问题:Python in R - Error: could not find a Python environment for /usr/bin/python

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-04-05
      • 1970-01-01
      • 2020-10-13
      • 2019-03-06
      • 2021-02-19
      • 2020-03-29
      • 2020-05-13
      相关资源
      最近更新 更多