pythoncondaarch

Installing python arch on Windows fails - with Anaconda 32 bit


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.

Solution

  • 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