【问题标题】:What is the best way to install rpy2 3.3.2 in a conda environment (running Python 3.8)?在 conda 环境(运行 Python 3.8)中安装 rpy2 3.3.2 的最佳方法是什么?
【发布时间】:2020-08-11 13:54:34
【问题描述】:

我尝试在 Mac 上的 conda 环境中安装最新版本的 rpy2,方法是进入 Conda Navigator 中的环境,单击我的环境,然后搜索 rpy2。但是,这个最新版本没有显示出来。

我也尝试通过终端安装:

pip install rpy2

这会生成以下错误消息:

Could not fetch URL https://pypi.python.org/simple/rpy2/: There was a problem confirming  the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement rpy2 (from versions: )
No matching distribution found for rpy2

我也试过了:

conda install rpy2==3.3.2 

但出现以下错误:

Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - rpy2==3.3.2

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

安装此软件包并使其在 anaconda 环境中可用的最佳方法是什么?

【问题讨论】:

  • 如果您使用的是 Windows,您可能需要查看 rpy2 的 GitHub 并尝试从源代码安装(最新版本不支持 Windows,但最近有人提供了修复,使其可能可用)。或者只使用较旧的 rpy2 版本。

标签: python python-3.x anaconda conda rpy2


【解决方案1】:

我有同样的问题,这解决了它:

pip3 install rpy2

【讨论】:

    猜你喜欢
    • 2020-04-30
    • 2018-08-13
    • 2019-05-04
    • 2017-06-20
    • 1970-01-01
    • 1970-01-01
    • 2019-06-26
    • 1970-01-01
    • 2020-08-18
    相关资源
    最近更新 更多