我找不到任何卸载和删除所有PyTorch依赖项的命令。甚至在pytorch.org网站上。
我安装PyTorch的时候
conda install pytorch torchvision cuda80 -c soumith发布于 2017-04-28 01:41:19
在anaconda docs中,可以使用conda uninstall卸载
试一试
conda uninstall pytorch torchvision cuda80 -c soumith或者,pytorch docs建议
conda uninstall pytorch
pip uninstall torch
pip uninstall torch # run this command twice发布于 2018-03-28 04:08:35
根据pytorch github存储库中的CONTRIBUTING.md,下面是正确的命令集:
卸载所有现有的pytorch安装
conda uninstall pytorch
pip uninstall torch
pip uninstall torch # run this command twice发布于 2017-12-11 07:40:41
您还可以使用
conda remove torch torchvision请注意,这将删除指定的包(这里: torch和torchvision)以及任何其他依赖于torch和torchvision的包(如果有的话)。
P.S. conda uninstall是conda remove的别名。
https://stackoverflow.com/questions/43664444
复制相似问题