Anaconda install pytorch from local directory

I use anaconda prompt to install pytorch in the following command:
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
But because of the bad network I got a HTTP ERROR, so I download the four required packages:
cudatoolkit-10.0.130-0.tar
ninja-1.9.0-py37h74a9793_0.tar
pytorch-1.1.0-py3.7_cuda100_cudnn7_1.tar
torchvision-0.3.0-py37_cu100_1.tar
And I save these packages in the C:\Users\user.conda\pkgs. then I want to run the conda install command to install the pytorch, how can I install these local packages and avoid re-downloading them?

question 2: I also try to use pip install to install pytorch, and I try to download the “whl” file in pytorch website, but I can only get the torch1.0.0 in the previous version, how can I get the newest version torch1.1.0 “whl” file in the website?

Please help me thx

  1. Did you try to call conda install PATH_TO_TAR?

  2. This URL might work: https://download.pytorch.org/whl/cu100/torch-1.1.0-cp37-cp37m-linux_x86_64.whl