How to install pytorch in windows?

前端 未结 16 1980
时光取名叫无心
时光取名叫无心 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:35

    If you are trying to install on windows 10 and you are not having the anaconda installation than the best options are below:

    Python 2.7

    pip install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp27-cp27mu-linux_x86_64.whl
    pip install torchvision
    

    If the above command does not work, then you have python 2.7 UCS2, use this command

    pip install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp27-cp27m-linux_x86_64.whl
    

    Python 3.5

    pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp35-cp35m-win_amd64.whl
    pip3 install torchvision
    

    Python 3.6

    pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp36-cp36m-win_amd64.whl
    pip3 install torchvision
    

    Python 3.7

    pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp37-cp37m-win_amd64.whl
    pip3 install torchvision
    

提交回复
热议问题