anacondapytorch

Pytorch install with anaconda error


I get this error:

C:\Users>conda install pytorch torchvision -c soumith
Fetching package metadata .............

PackageNotFoundError: Package missing in current win-64 channels:
  - pytorch

I got conda install pytorch torchvision -c soumith from Pytorch official website and I have OSX/conda/3.6/none for settings on Pytorch site(should be correct). I am new to conda, any tips how to solve this?


Solution

  • Use the following commands to install pytorch on windows

    for Windows 10 and Windows Server 2016, CUDA 8

    conda install -c peterjc123 pytorch cuda80
    

    for Windows 10 and Windows Server 2016, CUDA 9

    conda install -c peterjc123 pytorch cuda90
    

    for Windows 7/8/8.1 and Windows Server 2008/2012, CUDA 8

    conda install -c peterjc123 pytorch_legacy cuda80