快速安装torch的方法

pip install torch==1.12.1+cu113  -f https://download.pytorch.org/whl/torch_stable.ht
ml

记住要加上:-f https://download.pytorch.org/whl/torch_stable.html

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
对于在Win10上使用pip安装torch,有几个途径可以实现。首先,你可以使用以下命令在Win10上安装torchtorchvision: pip install torch===1.7.1 torchvision===0.4.1 -i https://pypi.tuna.tsinghua.edu.***你可能会遇到报错"torch has an invalid wheel"。如果遇到这个问题,你可以尝试以下方法解决: 首先,你可以打开官方网站,找到对应版本的.whl文件,然后使用命令"pip install 文件名称.whl"来安装。 另外,你也可以尝试使用其他的镜像源来安装,比如使用国内的镜像源或者其他可靠的镜像源来解决问题。 总之,通过以上方法,你可以成功安装torchtorchvision模块。希望能对你有所帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [pip快速安装torch](https://blog.csdn.net/weixin_43276103/article/details/124204245)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [python torch的pip安装方法最全面分享!!!](https://blog.csdn.net/weixin_44178960/article/details/117353665)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值