How to install pytorch in Anaconda with conda or pip?

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

    For me it worked doing this:

    Uninstall the previous version: go to C:\users\username\anaconda3 and run the anaconda-uninstall.exe

    Install again anaconda

    then run the following commands on the anaconda pompt:

    conda create -n my_env python=2.7

    conda activate my_env

    start the gui app

    conda install -c peterjc123 pytorch

    anaconda-navigator

提交回复
热议问题