conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yesconda install pytorch torchvision -c soumithpython:
import torch
import torchvision
本文介绍如何通过配置Anaconda使用清华大学镜像源来安装PyTorch和相关依赖包,包括设置显示渠道URL及安装PyTorch、torchvision等组件的过程。
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yesconda install pytorch torchvision -c soumithpython:
import torch
import torchvision
1万+
1958
315

被折叠的 条评论
为什么被折叠?