ubuntu16.04怎么卸载pytorch

1292
2021/5/22 10:54:35
栏目: 智能运维
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

ubuntu16.04中卸载pytorch的方法:1、打开ubuntu16.04终端;2、输入“pip uninstall torch”命令通过pip指令将pytorch卸载即可。

ubuntu16.04怎么卸载pytorch

具体操作步骤:

1、在ubuntu16.04系统桌面中使用快捷键【Ctrl+Alt+T】打开终端命令行模式。

2、在ubuntu16.04终端命令行中输入以下命令将pytorch进行卸载即可。

pip uninstall torch

相关操作命令:

pip --default-timeout=100 install torch torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple #使用国内源来安装pytorch

sudo apt install python-pip #安装pip

pip --version #查看pip版本

辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读: 如何在Ubuntu上为lsblk命令创建别名