pytorch更新

pip install --upgrade torch torchvision

Installing collected packages: future, torch, torchvision
  Attempting uninstall: torch
    Found existing installation: torch 1.3.1
    Uninstalling torch-1.3.1:
      Successfully uninstalled torch-1.3.1
  Attempting uninstall: torchvision
    Found existing installation: torchvision 0.2.2
    Uninstalling torchvision-0.2.2:
      Successfully uninstalled torchvision-0.2.2
Successfully installed future-0.18.2 torch-1.5.1 torchvision-0.6.1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
更新PyTorch的版本,你可以使用pip或conda命令。下面是几种更新PyTorch版本的方法: 1. 使用pip更新PyTorch和torchvision: ``` pip install --upgrade torch torchvision ``` 2. 使用conda更新PyTorch和torchvision: ``` conda config --add channels soumith conda update pytorch torchvision ``` 3. 如果你想安装指定版本的PyTorch,可以使用以下命令: ``` pip install --upgrade pytorch==1.5.1 torchvision==0.7.0 ``` 或者使用conda命令: ``` conda install pytorch=0.1.10 -c pytorch_test conda install pytorch==1.5.1 torchvision==0.7.0 cudatoolkit=10.0 -c pytorch ``` 请根据你的需求选择适合的方法来更新PyTorch的版本。\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* *3* [Pytorch更新、卸载、版本查看](https://blog.csdn.net/mat_zx/article/details/121036695)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Pytorch更新版本与卸载常用指令](https://blog.csdn.net/qq_49821869/article/details/127700187)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值