Python配置PyTorch

Python配置PyTorch

Python+Anaconda配置PyTorch

参考网址
https://blog.csdn.net/cuixing001/article/details/81952116

我的操作
首先打开anaconda的命令行窗口prompt执行:
conda install pytorch cuda80 -c pytorch
在这里插入图片描述
执行中界面是这样的
在这里插入图片描述
接下来是这样的
在这里插入图片描述
然后下面的图片中,该命令执行完毕,用时还是挺长的。

在这里插入图片描述
接着执行
conda install torchvision
或者
pip3 install torchvision
过程是下面的这样
在这里插入图片描述

conda install torchvision出了点问题。改用
pip3 install torchvision,成功。检验一下:

import torch

在这里插入图片描述
这样就可以开心的用pytorch做Deep Learning了。

猜你喜欢

转载自blog.csdn.net/HsinglukLiu/article/details/107820565
今日推荐