Cannot install pytorch with pip command and install pytorch in anaconda environment instead

One, download Anaconda and install

  1. Official website download software
    https://www.anaconda.com/
  2. The installation process is the next step, so I won’t go into details

Second, configure the download source

  1. Open the Anaconda terminal and enter the following command
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
  1. Open the pytorch official website and download
    https://pytorch.org/ using the configured download address
    Insert picture description here

Guess you like

Origin blog.csdn.net/zhuan_long/article/details/112003012