Installing torchaudio with pytorch 1.5.0 lead to downgrade

while installing torchaudio with conda install torchaudio -c pytorch, anaconda downgrades torchvision (0.6.0 to 0.2.2) and pytorch (1.5 to 1.4). How to avoid this?

Hi,

Thanks for the report. Which OS are you using?

It is torchaudio 0.5 that you are installing right?
If not, make sure that your conda is up to date as it sometimes prevent you from installing the latest version of libraries.

I can’t reproduce on MacOS

❯ conda update -n base -c defaults conda
❯ conda create -n 150and050 python=3.8
❯ conda activate 150and050
❯ conda install -c pytorch pytorch
❯ conda install -c pytorch torchaudio
❯ python -c "import torch; print(torch.__version__); import torchaudio; print(torchaudio.__version__);"
1.5.0
0.5.0a0+3305d5c

I can reproduce on linux:

❯ conda update -n base -c defaults conda
❯ conda create -n 150and050 python=3.8
❯ conda activate 150and050
❯ conda install -c pytorch pytorch
❯ python -c "import torch; print(torch.__version__);"

ModuleNotFoundError: No module named 'torch'

❯ conda install -c pytorch torchaudio

installs 0.4.0 and downgrades to 1.4.0

❯ python -c "import torch; print(torch.__version__);"

ModuleNotFoundError: No module named 'torch'

❯ python -c "import torchaudio; print(torchaudio.__version__);"

ModuleNotFoundError: No module named 'torchaudio'

Yes linux binaries for torchaudio are not up yet. We are still working on that.

3 Likes

I am also getting pytorch 1.4 and torchvision 0.6 on linux anaconda. My environment is as follows:

name: Pytorch-gpu
dependencies:
  - python=3.7
  - ipywidgets
  - jupyterlab
  - pytorch::pytorch
  - pytorch::torchvision

Thanks so much. This is exactly what is happening to me. I’m on Debian GNU/Linux 9.4

Hi,

We updated all the linux binaries now. So all should work fine. Can you double check that it works on your side?

1 Like

Should we use anaconda again?

All should be working now yes. Let us know if you see any issue.

Okey, I will try and let you know. I have been using the nightly version until now owing to the fact that when i installed torchvision this morning ,It does’t come with deeplabv3_resnet50 weights.

Are deeplabv3_resnet50 weights in torchvision 0.6?

Torchvision 0.6.0a0+82fd1c8 is getting installed from anaconda, which is a prerelease

If you install from the pytorch channel, you should get the realease: https://anaconda.org/pytorch/torchaudio

I was installing from pytorch official anaconda channel. I decided to change to pip and now is working!

worked perfectly using pytorch channel! thanks a lot.

1 Like