一、安装Pytorch:
# -c 指定用pytorch镜像源下载软件
conda install pytorch torchvision cpuonly -c pytorch
报错:
二、配置:
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ show_channel_urls: true
三、运行:
# 配置清华的镜像源下载(注意去掉-c参数)
conda install pytorch torchvision cpuonly
四、结果: