简体   繁体   English

在 conda 环境(运行 Python 3.8)中安装 rpy2 3.3.2 的最佳方法是什么?

[英]What is the best way to install rpy2 3.3.2 in a conda environment (running Python 3.8)?

I tried installing the latest version of rpy2 on a Mac in a conda environment by going into environments within the Conda Navigator, clicking on my environment, and searching for rpy2.我尝试通过进入 Conda Navigator 中的环境,单击我的环境并搜索 rpy2,在 conda 环境中的 Mac 上安装最新版本的 rpy2。 However, this latest version does not show up.但是,这个最新版本没有出现。

I also tried installing through the terminal by using:我还尝试使用以下方法通过终端安装:

pip install rpy2

This generates the following error message:这会生成以下错误消息:

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

I also tried:我也试过:

conda install rpy2==3.3.2 

But got the following error:但出现以下错误:

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.

What is the best way to install this package and make it available within an anaconda environment?安装此 package 并使其在 anaconda 环境中可用的最佳方法是什么?

I had the same and this solved it:我有同样的问题,这解决了它:

pip3 install rpy2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM