声明:我使用的是pip安装

step 1:

去官网找自己要的pytorch版本安装命令,复制下来

 step 2:

 在命令后面打一个空格然后加上清华源: -i https://pypi.tuna.tsinghua.edu.cn/simple

完整安装pytorch的命令:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 -i https://pypi.tuna.tsinghua.edu.cn/simple

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐