Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can l uninstall PyTorch?

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 
like image 823
vincent Avatar asked Apr 27 '17 17:04

vincent


People also ask

How do I know if PyTorch is installed?

You can use torch. __version__ to check the version of PyTorch. If you have not imported PyTorch, use import torch first. If you used pip to install PyTorch, run pip3 show torch to show all the information of the installation, which also includes the version of PyTorch.

How do I uninstall anaconda packages?

Open Terminal. Type and run conda install anaconda-clean to install the Anaconda-Clean package. Press the Return key, then type the following: anaconda-clean –yes. To remove the entire Anaconda directory, type and run rm -rf ~/anaconda3.

How do I download PyTorch in anaconda?

Anaconda. To install Anaconda, you will use the 64-bit graphical installer for PyTorch 3.x. Click on the installer link and select Run . Anaconda will download and the installer prompt will be presented to you.


1 Answers

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 
like image 111
wpercy Avatar answered Oct 12 '22 23:10

wpercy