Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在conda环境(运行Python 3.8)中安装rpy2 3.3.2的最佳方法是什么?_Python_Python 3.x_Anaconda_Conda_Rpy2 - Fatal编程技术网

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

在conda环境(运行Python 3.8)中安装rpy2 3.3.2的最佳方法是什么?,python,python-3.x,anaconda,conda,rpy2,Python,Python 3.x,Anaconda,Conda,Rpy2,我尝试在conda环境中的Mac上安装最新版本的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: T

我尝试在conda环境中的Mac上安装最新版本的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版本。