Updating PyTorch
I just wanted to pin this topic, so that it can be used for future reference. <SCODE>conda config --add channels soumith
<ECODE> <SCODE>conda update pytorch torchvision
<ECODE> <SCODE>$HOME/anaconda3/lib/python3.5/site-packages/torch
<ECODE> <SCODE>$HOME/anaconda3/lib/python3.5/site-packages/torchvision-0.1.6-py3.5.egg/torchvision/__init__.py
<ECODE> but such location does not exist. Nevertheless, my IDE can find those files in that location, when exploring the source code. <SCODE>/data/users/soumith/miniconda2/conda-bld/pytorch-0.1.7_1485445763020/work/torch/lib/THNN/generic/SpatialConvolutionMM.c
<ECODE>
Atcold
apaszke
About 2, that’s kind of not what I see here. <SCODE>>>> f = open(torchvision.__file__)
Traceback (most recent call last):
  File "/home/atcold/anaconda3/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-95-16f43d841fa3>", line 1, in <module>
    f = open(torchvision.__file__)
NotADirectoryError: [Errno 20] Not a directory: '/home/atcold/anaconda3/lib/python3.5/site-packages/torchvision-0.1.6-py3.5.egg/torchvision/__init__.py'
>>> f2 = open(torch.__file__)
# succeed
<ECODE>
Atcold
apaszke
Oh, maybe I’ve figured it out… <SCODE>atcold@GPU0 ~/anaconda3/lib/python3.5/site-packages $ ls -daF torch*
torch/  torch-0.1-py3.5.egg-info/  torchvision-0.1.6-py3.5.egg  torchvision.pth
<ECODE>
Atcold
Oh yeah, I think it’s zipped in an egg.
apaszke
this is no longer working. PackageNotFoundError: Package not found: ‘pytorch’
Hubert
Hi,
antspy
<SCODE>conda install pytorch torchvision -c pytorch
<ECODE>
jdhao
For me this did not work. It always tried to downgrade my pytorch and torchvision to some rather ancient version. I installed it again in a separate environment using pip then which worked.
omair-kg
jdhao
Tried that aswell. So far only Pip seems to work for me.
omair-kg
This worked for me! The following NEW packages will be INSTALLED: <SCODE>cudatoolkit: 8.0-3
<ECODE> The following packages will be UPDATED: <SCODE>pytorch:     0.2.0-py36h53baedd_4cu80 soumith [cuda80] --> 0.3.0-py36_cuda8.0.61_cudnn7.0.3h37a80b5_4 pytorch
torchvision: 0.1.9-py36h7584368_1     soumith --> 0.2.0-py36h17b6947_1                       pytorch<ECODE>
manozzm
If the dependencies are not met, conda will not update to recent pytorch. What I did was the following.
shehabk
<SCODE>conda config --add channels pytorch
<ECODE>
Atcold
Atcold
<SCODE>>>> import torch
>>> import os
>>> os.path.isfile(torch.__file__)
True
>>> os.path.abspath(torch.__file__)
'/Users/sebastian/miniconda3/lib/python3.6/site-packages/torch/__init__.py'
<ECODE>
rasbt
Hey guys. What is the recommended way of upgrading to PyTorch V1.0 using conda? After adding the pytorch channel and trying to update this message appears: # All requested packages already installed. Any suggestions?
stoddur
ptrblck
Thanks for your reply. How does one go about installing the 1.0 preview? After installing the nightly version from source I end up with version 0.4.1
stoddur