How can l uninstall PyTorch with Anaconda?

Posted on Jan 22, 2022

Question

I installed PyTorch with:

conda install pytorch torchvision cuda80 -c soumith

How do I uninstall and remove all PyTorch dependencies?

Answer

From the anaconda docs, you can uninstall with conda uninstall

Try

conda uninstall pytorch torchvision cuda80 -c soumith

Alternatively, the pytorch docs suggest

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