卸载安装的torch
时间: 2023-09-24 09:12:41 浏览: 225
如何安装pytorch
如果你想卸载之前安装的torch,你可以使用以下命令进行卸载:
pip uninstall torch -y
pip uninstall torchvision -y
这将卸载torch和torchvision两个包。请确保在执行这些命令之前,你已经进入了正确的Python环境。
#### 引用[.reference_title]
- *1* *3* [卸载cpu版本的torch并离线安装对应的gpu版本](https://blog.csdn.net/qq_43575504/article/details/129559776)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [使用Pip安装和卸载PyTorch(CUDA版)](https://blog.csdn.net/COCO56/article/details/119895487)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文