How can I remove PyTorch?

I cannot find a single command to remove and remove all PyTorch dependencies. Even on pytorch.org .

I installed PyTorch with

conda install pytorch torchvision cuda80 -c soumith
+7
source share
5 answers

From Anaconda documents you can remove with the help ofconda uninstall

Try

conda uninstall pytorch torchvision cuda80 -c soumith

In addition, Pytorch documents offer

conda uninstall pytorch
pip uninstall torch
pip uninstall torch # run this command twice
+16
source

You can also use

conda remove torch torchvision

Please note that this will remove the indicated packages (here: torch and torchvision) and any other package that depends on the torch and torchvision, if any.

P.S. conda uninstall conda remove.

+6

CONTRIBUTING.md pytorch github repo:


pytorch

conda uninstall pytorch
pip uninstall torch
pip uninstall torch # run this command twice
+3

You can safely remove the pytorch installation using the following conda command:

conda uninstall pytorch-cpu torchvision-cpu pytorch
0
source

I recently found a good tool!

pip install pip-autoremove

This tool can remove all the tools you need to remove. For example, if you need to remove a torch, it can also delete a torch!

Usage: pip-autoremove [OPTION]... [NAME]...

Options:
  --version     show program version number and exit
  -h, --help    show this help message and exit
  -l, --list    list unused dependencies, but don't uninstall them.
  -L, --leaves  list leaves (packages which are not used by any others).
  -y, --yes     don't ask for confirmation of uninstall deletions.
0
source

Source: https://habr.com/ru/post/1675835/


All Articles