0

我正在尝试在 anaconda 中安装 CERNS ROOT,以使用 pyRoot。(我正在使用 conda 4.10.3)

我已经用 python 2.7 建立了一个新环境,因为我相信我在某处读到 ROOT 不能很好地与 python 3 一起工作。在将 python 安装到新环境并激活它之后,我已将 conda-forge 添加到当前频道并尝试安装以下内容:

https://anaconda.org/conda-forge/root-dependencies

使用:

conda install -c conda-forge root-dependencies

然而,这返回了以下内容:

(pyRoot) C:\Users\George>conda install -c conda-forge root-dependencies
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
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:

  - root-dependencies

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/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.


我不确定为什么这不起作用,因为我相当确定根依赖项在 conda-forge 频道上根据链接可用。

我尝试了以下方法:

SET CONDA_RESTORE_FREE_CHANNEL=1

以防万一它是可能已被删除的免费频道的一部分,但我仍然遇到同样的错误。

任何想法表示赞赏:)

4

1 回答 1

0

该软件包不是为win-64平台构建的,这是 OP 通道配置表明正在使用的。考虑 WSL2 或 Docker(ROOT 项目提供预构建的图像)。

如果您希望 Conda Forge 构建 Windows 版本,请提交有关原料的问题。请注意,ROOT 项目本身仅对 Windows 提供 beta 支持,因此这可能不是一项简单的任务。

于 2021-10-14T15:42:47.897 回答