为什么使用 conda 安装 rstudio,r 版本 4,在我的 linux 系统 return 上使用 conda 出现关于不兼容规范的错误?
Why does using conda to install rstudio, r version 4, using conda on my linux system return an error about incompatable specifications?
我正在尝试使用 condas 安装 r 和 rstudio
conda create -c conda-forge -n r4rs r-base=4.0.* rstudio
> Collecting package metadata (current_repodata.json): done Solving
> environment: failed with repodata from current_repodata.json, will
> retry with next repodata source. Collecting package metadata
> (repodata.json): done Solving environment: / Found conflicts! Looking
> for incompatible packages. This can take several minutes. Press
> CTRL-C to abort. failed
>
>
> UnsatisfiableError: The following specifications were found to be
> incompatible with each other:
>
> Output in format: Requested package -> Available versions
>
> Package r-base conflicts for: rstudio ->
> r-base64enc[version='>=0.1-3'] ->
> r-base[version='3.1.3.*|3.2.0.*|3.2.1.*|3.2.2.*|3.3.2.*|3.4.1.*|>=3.4.1,<3.4.2.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=4.0,<4.1.0a0|>=4.1,<4.2.0a0|>=3.5.1,<3.5.2.0a0|>=3.5.0,<3.5.1.0a0|>=3.4.3,<3.4.4.0a0|>=3.4.2,<3.4.3a0|3.3.1.*|3.4.1|>=3.4.2|>=3.3.2|>=3.3.1|3.2.2'] r-base=4.0The following specifications were found to be incompatible
> with your system:
>
> - feature:/linux-64::__glibc==2.27=0
> - feature:|@/linux-64::__glibc==2.27=0
> - rstudio -> libgcc-ng[version='>=7.2.0'] -> __glibc[version='>=2.17']
>
> Your installed version is: 2.27
然而,
conda create -c r -n r4rs r-base rstudio
似乎可以安装 r
和 rstudio
。
我不知道这意味着什么,也不知道我该如何开始解决这个问题。也许我只需要提交一个错误报告并接受这暂时不会发生的事实,但如果有什么方法可以让我继续前进,我很乐意听到它。
uname -rv
> 5.4.0-99-generic #112~18.04.1-Ubuntu SMP Thu Feb 3 14:09:57 UTC 2022
看起来像是依赖关系的问题,因为 rstudio
似乎无法通过指定的 r-base=4.0.*
解决。
这个有效:
conda create -c conda-forge -n r4rs r-base rstudio
这不会:
conda create -c conda-forge -n r4rs r-base=4.0.* rstudio
可能的原因可能是 conda 频道中的 rstudio
软件包没有得到积极维护,并且已经一年多没有看到更新,请参阅 here
根据此处可以提供的内容,您可以:
接受 conda create -c conda-forge -n r4rs r-base rstudio
的选项,这会给你 r-base<4.0
从 official website and create an environment with just r-base==4.0.*
, activate that env and then start your downloaded rstudio, which should detect the r
you have installed into the conda env. See also
下载并安装您自己的 rstudio
版本
我正在尝试使用 condas 安装 r 和 rstudio
conda create -c conda-forge -n r4rs r-base=4.0.* rstudio
> Collecting package metadata (current_repodata.json): done Solving
> environment: failed with repodata from current_repodata.json, will
> retry with next repodata source. Collecting package metadata
> (repodata.json): done Solving environment: / Found conflicts! Looking
> for incompatible packages. This can take several minutes. Press
> CTRL-C to abort. failed
>
>
> UnsatisfiableError: The following specifications were found to be
> incompatible with each other:
>
> Output in format: Requested package -> Available versions
>
> Package r-base conflicts for: rstudio ->
> r-base64enc[version='>=0.1-3'] ->
> r-base[version='3.1.3.*|3.2.0.*|3.2.1.*|3.2.2.*|3.3.2.*|3.4.1.*|>=3.4.1,<3.4.2.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=4.0,<4.1.0a0|>=4.1,<4.2.0a0|>=3.5.1,<3.5.2.0a0|>=3.5.0,<3.5.1.0a0|>=3.4.3,<3.4.4.0a0|>=3.4.2,<3.4.3a0|3.3.1.*|3.4.1|>=3.4.2|>=3.3.2|>=3.3.1|3.2.2'] r-base=4.0The following specifications were found to be incompatible
> with your system:
>
> - feature:/linux-64::__glibc==2.27=0
> - feature:|@/linux-64::__glibc==2.27=0
> - rstudio -> libgcc-ng[version='>=7.2.0'] -> __glibc[version='>=2.17']
>
> Your installed version is: 2.27
然而,
conda create -c r -n r4rs r-base rstudio
似乎可以安装 r
和 rstudio
。
我不知道这意味着什么,也不知道我该如何开始解决这个问题。也许我只需要提交一个错误报告并接受这暂时不会发生的事实,但如果有什么方法可以让我继续前进,我很乐意听到它。
uname -rv
> 5.4.0-99-generic #112~18.04.1-Ubuntu SMP Thu Feb 3 14:09:57 UTC 2022
看起来像是依赖关系的问题,因为 rstudio
似乎无法通过指定的 r-base=4.0.*
解决。
这个有效: conda create -c conda-forge -n r4rs r-base rstudio 这不会: conda create -c conda-forge -n r4rs r-base=4.0.* rstudio
可能的原因可能是 conda 频道中的 rstudio
软件包没有得到积极维护,并且已经一年多没有看到更新,请参阅 here
根据此处可以提供的内容,您可以:
接受
conda create -c conda-forge -n r4rs r-base rstudio
的选项,这会给你r-base<4.0
从 official website and create an environment with just
下载并安装您自己的r-base==4.0.*
, activate that env and then start your downloaded rstudio, which should detect ther
you have installed into the conda env. See alsorstudio
版本