How can l uninstall PyTorch?

vincent  picture vincent · Apr 27, 2017 · Viewed 75.8k times · Source

I can't find any command to uninstall and remove all PyTorch dependencies. Even on the pytorch.org website.

I installed PyTorch with

conda install pytorch torchvision cuda80 -c soumith

Answer

wpercy picture wpercy · Apr 27, 2017

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