PyTorch安装及试用 基于Anaconda3

设置Torch国内镜像

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

安装PyTorch和TorchVision

conda install pytorch torchvision

查看pytorch版本

import torch
import torchvision
print(torch.__version__)
print(torchvision.__version__)

猜你喜欢

转载自www.cnblogs.com/xbit/p/10293381.html