其他分享
首页 > 其他分享> > pytorch1.4.0三步安装

pytorch1.4.0三步安装

作者:互联网

先上结果图在这里插入图片描述我是直接安装1.4会报错,然后在在网上找了很多方法。大概就是先安装了torch1.3.1,然后再直接安装torch1.4.0就可以了。

具体步骤:
1.pip install torch==1.3.1 -f https://download.pytorch.org/whl/torch_stable.html
2.pip install torchvision==0.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
3.pip install torch1.4.0+cpu torchvision0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn

参考文章:
https://blog.csdn.net/samsarange/article/details/105149785
https://blog.csdn.net/qq_33749437/article/details/104133187

标签:install,三步,torch,pytorch1.4,https,pip,安装,cn
来源: https://blog.csdn.net/minimumZHU/article/details/120232900