Installing python arch on Windows fails – with Anaconda 32 bit

huangapple go评论59阅读模式
英文:

Installing python arch on Windows fails - with Anaconda 32 bit

问题

1 这个页面展示了如何在 conda 环境中安装 arch-py 包。标签列表中包括 win-64,这让我认为相同的命令也应该在 Windows 上工作,就像安装 numpy 一样。

我按照建议尝试了,但失败了:

(myarch) C:\Windows\System32>conda install -c conda-forge arch-py
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:

  - arch-py

Current channels:

  - https://conda.anaconda.org/conda-forge/win-32
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-32
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-32
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-32
  - https://repo.anaconda.com/pkgs/msys2/noarch

要搜索可能提供 conda 包的替代通道,请访问

    https://anaconda.org

并使用页面顶部的搜索栏。

我还尝试了同时创建环境并安装包,但结果仍然相同:

(base) C:\Windows\System32>conda create -c conda-forge -n myarch python numpy arch-py
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: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - arch-py

Current channels:

  - https://conda.anaconda.org/conda-forge/win-32
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-32
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-32
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-32
  - https://repo.anaconda.com/pkgs/msys2/noarch

要搜索可能提供 conda 包的替代通道,请访问

    https://anaconda.org

并使用页面顶部的搜索栏。
英文:

This page shows how to install the arch-py package in a conda environment. The list of labels includes win-64, which makes me think that the same command should work also on Windows, just like the installation of numpy works.

I tried as suggested, but it fails:

(myarch) C:\Windows\System32>conda install -c conda-forge arch-py
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:

  - arch-py

Current channels:

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

I also tried by creating the environment and installing the package at the same time, but I got the same failure:

(base) C:\Windows\System32>conda create -c conda-forge -n myarch python numpy arch-py
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: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - arch-py

Current channels:

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

答案1

得分: 0

根据 @merv 的建议,问题是由于原始的 Anaconda 安装是 32 位引起的。我已经更新了标题,以帮助未来的 Anaconda 32 位用户。

通过按照 这个答案 中列出的步骤,我成功解决了这个问题:

conda create —n arch-py
conda activate arch-py
conda config --env --set subdir win-64
conda install python=3.10
conda install numpy
conda install arch-py
英文:

As @merv suggested, the problem was caused by the original Anaconda installation being 32 bit. I have updated the title to help any future Anaconda 32 bit users.

By following the steps listed in this answer, I was able to solve this problem:

conda create —n arch-py
conda activate arch-py
conda config --env --set subdir win-64
conda install python=3.10
conda install numpy
conda install arch-py

huangapple
  • 本文由 发表于 2023年6月13日 01:32:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/76459023.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定