Installing torchaudio with pytorch 1.5.0 lead to downgrade

username: Saurabh_Kataria
cooked: <p>while installing torchaudio with <code>conda install torchaudio -c pytorch</code>, anaconda downgrades torchvision (0.6.0 to 0.2.2) and pytorch (1.5 to 1.4). How to avoid this?</p>

username: albanD
cooked: <p>Hi,</p>
<p>Thanks for the report. Which OS are you using?</p>
<p>It is torchaudio 0.5 that you are installing right?<br>
If not, make sure that your conda is up to date as it sometimes prevent you from installing the latest version of libraries.</p>

username: vincentqb
cooked: <p>I can’t reproduce on MacOS</p>
<pre><code class="lang-auto">❯ 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
</code></pre>

username: vincentqb
cooked: <p>I can reproduce on linux:</p>
<pre><code class="lang-auto">❯ 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'
</code></pre>

username: albanD
cooked: <p>Yes linux binaries for torchaudio are not up yet. We are still working on that.</p>

username: WaterKnight
cooked: <p>I am also getting pytorch 1.4 and torchvision 0.6 on linux anaconda. My environment is as follows:</p>
<pre><code class="lang-auto">name: Pytorch-gpu
dependencies:
  - python=3.7
  - ipywidgets
  - jupyterlab
  - pytorch::pytorch
  - pytorch::torchvision
</code></pre>

username: Saurabh_Kataria
cooked: <p>Thanks so much. This is exactly what is happening to me. I’m on Debian GNU/Linux 9.4</p>

username: albanD
cooked: <p>Hi,</p>
<p>We updated all the linux binaries now. So all should work fine. Can you double check that it works on your side?</p>

username: WaterKnight
cooked: <p>Should we use anaconda again?</p>

username: albanD
cooked: <p>All should be working now yes. Let us know if you see any issue.</p>

username: WaterKnight
cooked: <p>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.</p>
<p>Are deeplabv3_resnet50 weights in torchvision 0.6?</p>

username: WaterKnight
cooked: <p>Torchvision 0.6.0a0+82fd1c8 is getting installed from anaconda, which is a prerelease</p>

username: albanD
cooked: <p>If you install from the pytorch channel, you should get the realease: <a href="https://anaconda.org/pytorch/torchaudio">https://anaconda.org/pytorch/torchaudio</a></p>

username: WaterKnight
cooked: <p>I was installing from pytorch official anaconda channel. I decided to change to pip and now is working!</p>

username: Saurabh_Kataria
cooked: <p>worked perfectly using pytorch channel! thanks a lot.</p>