PyTorch nightly with conda

dashesy: <p>To install PyTorch nightly from pytorch.otg:</p>
<pre><code class="lang-bash"> conda install pytorch torchvision cudatoolkit=10.0 -c pytorch-nightly
</code></pre>
<p>To install PyTorch nightly <a href="https://anaconda.org/pytorch/pytorch-nightly" rel="nofollow noopener">from anaconda</a></p>
<pre><code class="lang-bash">conda install -c pytorch pytorch-nightly
</code></pre>
<p>So, which one is correct? the latter one installs pytorch-nightly from pytorch channel, the first one install pytorch from pytorch-nightly channels!! confusing</p>

ptrblck: <p>The first one is the new nightly build. In doubt, stick to the install instructions on the install instructions on the  <a href="https://pytorch.org/get-started/locally/" rel="nofollow noopener">website</a>.</p>

dashesy: <p>I use the first version. There seems now it always downgrades pytorch if I also include torchvision. nightly torchvision seems to be depending on an older version of nightly torch, also the stable torchvision raises an error when I try it with the nightly pytorch.</p>
<p>If I use <code>conda update</code> to update the nightly I get:</p>
<pre><code class="lang-auto">Updating pytorch is constricted by

torchvision -&gt; requires pytorch==1.3.0.dev20190917
</code></pre>
<p>So I will have to remove torchvision first, and then I can only install the stable torchvision (which does not work against nightly pytorch)</p>

ptrblck: <aside class="quote no-group" data-username="dashesy" data-post="3" data-topic="56927">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dashesy/48/4869_2.png" class="avatar"> dashesy:</div>
<blockquote>
<p>nightly torchvision seems to be depending on an older version of nightly torch</p>
</blockquote>
</aside>
<p>I would assume the nightly binaries of <code>torchvision</code> and PyTorch should be matching, i.e. both should have the same build date. If some <code>torchvision</code> builds were skipped (for whatever reason), you might have to downgrade PyTorch to the latest matching nightly build.<br>
<a class="mention" href="/u/fmassa">@fmassa</a> might know more about it.</p>

dashesy: <p><a class="mention" href="/u/fmassa">@fmassa</a> <a href="http://pytorch.org" rel="nofollow noopener">pytorch.org</a> suggests</p>
<pre><code>conda install pytorch torchvision cudatoolkit=10.0 -c pytorch-nightly
</code></pre>
<p>To get the latest nightly packages for PyTorch and torchvision.<br>
So can I assume</p>
<pre><code>conda update pytorch torchvision -c pytorch-nightly
</code></pre>
<p>Is the right way to update them both?</p>
<p>I currently cannot update both (torchvision forced PyTorch to donwgrade):</p>
<pre><code class="lang-nohighlight">The following packages will be UPDATED:
  torchvision        pytorch::torchvision-0.3.0-py36_cu10.~ --&gt; pytorch-nightly::torchvision-0.5.0.dev20190917-py36_cu100

The following packages will be DOWNGRADED:

  pytorch            1.3.0.dev20191002-py3.6_cuda10.0.130_~ --&gt; 1.3.0.dev20190917-py3.6_cuda10.0.130_cudnn7.6.2_0
</code></pre>
<p>I just wan to know if this is normal or my setup is wrong. Also, I cannot load latest released torchvison against nightly PyTorch:</p>
<pre><code>ImportError: /home/ehazar/miniconda3/envs/py3_night/lib/python3.6/site-packages/torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c1011CPUTensorIdEv</code></pre>