英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论