How to install pytorch in windows?

前端 未结 16 2060
时光取名叫无心
时光取名叫无心 2020-12-05 19:52

I am trying to install pytorch on windows and there is one which is available for it but shows an error.

conda install -c peterjc123 pytorch=0.1.12
         


        
16条回答
  •  孤城傲影
    2020-12-05 20:30

    Actual answer:


    Best way is to check on the official website for up-to-date options. Here are the ones working as of 2020-03:

    # for windows 10, CUDA 10.1
    conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
    
    #for windows 10, CUDA 9
    conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev 
    

    Previous answer(out-of-date)


    It seems that the author (peterjc123) released 2 days ago conda packages to install PyTorch 0.3.0 on windows. Here is a copy:

    # 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
    

    source: https://github.com/pytorch/pytorch/issues/494#issuecomment-350527200

提交回复
热议问题