用于 PyTorch 的 ARM 处理器上的 Miniforge Conda "PackagesNotFoundError"

Miniforge Conda "PackagesNotFoundError" on ARM processor for PyTorch

我无法使用 miniforge 3 (conda 4.11.0) 安装任何软件包。

我正在 Jetson Nano Developer Kit 运行 Jetpack 上尝试这个。最初它安装了 conda,但它似乎不见了,所以我决定重新安装 conda。看起来 anaconda/miniconda 的基本版本在 ARM 处理器上有问题 运行,所以我下载了 miniforge,它显然可以正常工作。

我已经成功搭建了环境,但是尝试下载pytorch却报错如下:

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:

  - pytorch

Current channels:

  - https://conda.anaconda.org/pytorch/linux-aarch64
  - https://conda.anaconda.org/pytorch/noarch
  - https://conda.anaconda.org/abinit/linux-aarch64
  - https://conda.anaconda.org/abinit/noarch
  - https://conda.anaconda.org/matsci/linux-aarch64
  - https://conda.anaconda.org/matsci/noarch
  - https://conda.anaconda.org/conda-forge/linux-aarch64
  - 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.

这是针对 Python 3.7.12 的。似乎无论我尝试安装什么版本的 pytorch,这个问题仍然存在。

但是我能够安装一些其他软件包,因为我能够安装 beautifulsoup4。


默认conda通道上没有linux-aarch64版本的pytorch,见here

这当然是包特定的。例如。 beautifulsoup4 有一个 linux-aarch64 版本,这就是为什么您可以毫无问题地安装它的原因。

您可以尝试从声称为 aarch64 提供 pytorch 的不同渠道安装,例如

conda install -c kumatea pytorch