Unable to install `torchaudio==0.13.1` via conda for Python 3.10

Hello everyone, I’m having a weird issue on installing the torchaudio package from the pytorch conda channel for Pytrhon 3.10. In my current environment.

Using miniconda, I create a new environment with Python 3.10 and try to install the 0.13.1 version of torchaudio:

conda create python=3.10 -n test
conda activate test
conda install -c pytorch torchaudio=0.13.1=py310_cu117

The output then follows:

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.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - torchaudio==0.13.1=py310_cu117 -> python[version='>=3.11,<3.12.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0']

Your python: python=3.10

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__cuda==12.0=0
  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__cuda==12.0=0
  - feature:|@/linux-64::__glibc==2.35=0
  - torchaudio==0.13.1=py310_cu117 -> pytorch==1.13.1 -> __cuda
  - torchaudio==0.13.1=py310_cu117 -> pytorch==1.13.1 -> __glibc[version='>=2.17|>=2.17,<3.0.a0']

Your installed version is: 2.35

Maybe there’s something missing in the package’s version support list? (E.g. an extra |>=3.10,<3.11.0a0)

You should stick to the install instructions from here, which shows the install command as:

conda install torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia

which works properly for me:

The following packages will be downloaded:
...
    torchaudio-0.13.1          |      py310_cu117         6.5 MB  pytorch
...

The following NEW packages will be INSTALLED:

...
  torchaudio         pytorch/linux-64::torchaudio-0.13.1-py310_cu117 

Thanks, it’s working now! The issue was the lack of the nvidia channel (simply running conda install torchaudio==0.13.1 -c pytorch -c nvidia works as well).