关于安装PyTorch

1 假设你的机器上已经安装了python 和pip(没有安装的话可以参考)

https://www.cnblogs.com/8335IT/p/16581772.html

2 直接安装torchvision是安装不了的,会中途报错

 

 需要先安装pytorch 再安装torchvision

使用国内源:

pip install torch -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple/
原文链接:https://blog.csdn.net/qq_51052824/article/details/121641971

 

Successfully installed torch-1.12.1 typing-extensions-4.3.0

Successfully installed pillow-9.2.0 torchvision-0.13.1

安装很快

posted on 2022-08-15 20:50  邗影  阅读(42)  评论(0编辑  收藏  举报

导航