How to install pytorch in Anaconda with conda or pip?

后端 未结 9 1259
星月不相逢
星月不相逢 2020-12-16 11:50

I am trying to install pytorch in Anaconda to work with Python 3.5 in Windows. Following the instructions in pytorch.org I introduced the following code in Anaconda:

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 12:13

    Go to the official PyTorch.org and follow the steps accordingly.

    Select your preferences and you will see an appropriate command below on the page.

    If you don't have GPU in the system, set CUDA as None

    Example command:

    conda install pytorch-cpu torchvision-cpu -c pytorch
    

提交回复
热议问题