Updating to latest or recent version using package manager

username: Eliot_Brenner
cooked: <p>after updating using the command</p>
<blockquote>
<p>conda update pytorch</p>
</blockquote>
<p>or uninstalling pytorch and reinstalling with</p>
<blockquote>
<p>conda install pytorch torchvision -c pytorch</p>
</blockquote>
<p>CosineSimilarity disappears from distance.py.<br>
however it appears that CosineSimilarity remains in the master branch of the source code. Anyone else experiencing this issue?</p>
<p>torch.utils.data.ConcatDataset also disappears…</p>

username: Eliot_Brenner
cooked: <p>After manually removing the torch directories and doing a conda uninstall and install the above functions came back, but torch.utils.data.ConcatDataset and all the methods below it in torch.utils.data.dataset source code are still gone…</p>

username: Eliot_Brenner
cooked: <p>the issue is that the conda install installs version <code>0.1.12_1</code>. following the instructions here:</p>
<blockquote>
<p><a href="https://discuss.pytorch.org/t/updating-pytorch/309" class="inline-onebox">Updating PyTorch</a></p>
</blockquote>
<p>reinstalled version <code>0.2.0_4</code>.  is there any way to get a more up-to-date version short of installing from source?</p>

username: smth
cooked: <p><code>conda install pytorch=0.3.0 -c pytorch</code></p>

username: Eliot_Brenner
cooked: <aside class="quote no-group" data-username="smth" data-post="4" data-topic="11925" data-full="true">
<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/smth/48/13_2.png" class="avatar"> smth:</div>
<blockquote>
<p>conda install pytorch=0.3.0 -c pytorch</p>
</blockquote>
</aside>
<p>Thanks, have just tried that and get:</p>
<blockquote>
<p>Fetching package metadata …<br>
Solving package specifications:</p>
</blockquote>
<blockquote>
<p>PackageNotFoundError: Packages missing in current channels:</p>
<ul>
<li>pytorch 0.3.0* → mkl &gt;=2018</li>
</ul>
<p>We have searched for the packages in the following channels:</p>
<p>…</p>
</blockquote>

username: smth
cooked: <p>weird. can you try:</p>
<pre><code class="lang-auto">conda update -y conda
conda install mkl=2018
conda install pytorch=0.3.0 -c pytorch
</code></pre>

username: Eliot_Brenner
cooked: <aside class="quote no-group" data-username="smth" data-post="6" data-topic="11925">
<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/smth/48/13_2.png" class="avatar"> smth:</div>
<blockquote>
<p>conda install pytorch=0.3.0 -c pytorch</p>
</blockquote>
</aside>
<p>thanks, that installed version<code>0.3.0.post4</code>!<br>
as a side note, I had to deactivate the conda environment before running the first 2 commands.</p>

username: koeldc
cooked: <p>Hi,  I after trying conda install pytorch=0.3.0 -c pytorch , I’m getting this error for cuda10-<br>
init__.py", line 56, in </p>
<blockquote>
<blockquote>
<p>import torch</p>
</blockquote>
</blockquote>
<blockquote>
<blockquote>
<p>Traceback (most recent call last):<br>
File “”, line 1, in <br>
File “/home/cy/anaconda3/envs/py36/lib/python3.6/site-packages/torch/<strong>init</strong>.py”, line 56, in <br>
from torch._C import *<br>
ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory</p>
</blockquote>
</blockquote>
<p>I’ve tried</p>
<ul>
<li>conda install -c anaconda cudatoolkit==9.0 and conda install pytorch torchvision cuda92 -c pytorch</li>
</ul>
<p>Either doesn’t work.</p>

username: ptrblck
cooked: <p>Could I ask, why you are trying to install such an old PyTorch version?<br>
Would you like to execute some legacy code?<br>
If so, I would recommend to install the latest stable version (<code>1.1.0</code>) and create a topic here, in case you get stuck porting your code to the latest version. <img src="https://discuss.pytorch.org/images/emoji/apple/wink.png?v=9" title=":wink:" class="emoji" alt=":wink:"></p>

username: koeldc
cooked: <p>porting to 1.1.0 did work with few tweaks. Thanks a mil!</p>

username: Brando_Miranda
cooked: <p>but doesn’t this install version <code>0.3.0</code>? I thought we wanted to update to the most recent version (from the title of the question).</p>
<p>Can you clarify please?</p>
<p>Thanks in advance!</p>