使用国内镜像源安装pytorch

可以使用国内的镜像源来安装PyTorch,只需要在安装命令中添加相应的源即可。例如,使用清华源安装PyTorch,可以运行以下命令:pip install torch torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple

猜你喜欢

转载自blog.csdn.net/weixin_42588672/article/details/129491315