How to install pytorch in Anaconda with conda or pip?

后端 未结 9 1232
星月不相逢
星月不相逢 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:20

    Can you please try with below steps

    1. conda create -n pytorch_env python=3.5
    2. source activate pytorch_env
    3. conda install -c soumith pytorch
    4. python

      > import torch

    You can even find pytorch after you execute command conda list.

提交回复
热议问题