临时指定源安装库

pip3 --default-timeout=1000 install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.mirrors.ustc.edu.cn/simple

pip3 --default-timeout=1000 install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html -i http://pypi.douban.com/simple

 pip3 --default-timeout=1000 install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html -i http://pypi.douban.com/simple

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_29462849/article/details/90545782
一、找到合适的安装方式
pytorch官网:https://pytorch.org/


二、安装命令
pip3 install torch torchvision -i https://pypi.mirrors.ustc.edu.cn/simple

后面的是镜像,当然也可以采用其他源,网上很多,在这里不再陈述。
————————————————
版权声明:本文为CSDN博主「Oliver Cui」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_29462849/article/details/90545782

原文地址:https://www.cnblogs.com/jfdwd/p/11399682.html